perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  how to reinvent "tar xvfz" with perl?         


Author: Siegfried Heintze
Date: Jul 22, 2008 15:45

I need to automate some stuff and decided to use perl.

I have cygwin perl and activestate perl.

Below is my attempt. It does not work because I don't have perlIO::gzip installed.

When I tried

/bin/Perl -MCPAN -e 'install PerlIO::gzip'

The tests fail and it won't install.

When I try activestate perl's ppm.bat I don't see an any modules when I search for gzip (except for one called CGI-WebGzip which did not look like what I wanted).

Can someone help me reinvent "tar xvfz"?

Thanks!
Siegfried

#!c:/perl/bin/perl

#
# $Log$
#
# Begin commands to execute this file using Perl with bash
# ./untar.pl ..\\Archive-Tar-1.38.tar.gz >..\\Archive-Tar-1.38.tar
# End commands to execute this file using Perl with bash
#
Show full article (1.06Kb)
1 Comment
  Having trouble with cpan         


Author: Barry Benowitz
Date: Jul 22, 2008 10:53

Hi All,

I am having trouble with CPAN to update my perl packages. Here is the
error:

[root@gemini ~]# cpan

cpan shell -- CPAN exploration and modules installation (v1.7602)

ReadLine support enabled
cpan> install String::scanf

CPAN: Storable loaded ok

Going to read /home/barryb/.cpan/Metadata

Database was generated on Thu, 12 Jun 2008 12:06:48 GMT

Going to read /home/barryb/.cpan/sources/authors/01mailrc.txt.gz

CPAN: Compress::Zlib loaded ok

Can't call method "value" on an undefined value at
/usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.
cpan>

Has anyone seen this or have an idea for how to solve it.

Barry
1 Comment
  Re: Howto Pull files from two diff machines         


Author: Andy
Date: Jul 22, 2008 09:07

Hiya Guys

You guys have been previously helping me with a script.

"Debug Please" Was the title.

It's working as far as we can tell.

But I need to be able to ftp to two machines and pull down xferlog

Therefore each xferlog would be downloaded as xferlog.host.month.log

Then either joined as one and then processed ?

Now sure , What would be the best way to go about that ?

Any directions would be appreciated.

I would post the code, but I am not sure you guys would need a whole
code ....

-Ty
no comments
  fetching to docs using wget         


Author: A B
Date: Jul 22, 2008 05:53

Hi,

I am trying to fetch various docs from server using wget. Below is the code
Files are downloading but of 0 size :(

Am i missing any thing

adave@adave:~/adave> cat fetch.pl
open(S,"<./source.txt") || die "Failed to open file 'source.txt' $!";
while()
{
Show full article (1.31Kb)
1 Comment