mantra2006 has asked for the wisdom of the Perl Monks concerning the following question:
somehow the tar command is not working and files are not getting compressed. any idea why tar is failinguse strict; @srcfiles =("/home/Scripts/Perl/abcd.txt /home/Scripts/Perl/Test.pl /h +ome/Scripts/Perl/checkingString.ksh"); $dir_src="/home/Scripts/Perl"; $filename = $dir_src ."/" . "test.txt"; open(FILE, ">>" . $filename) || die "Cannot Create File"; foreach $file (@srcfiles) { print "Files : $file \n"; print FILE "$file\n"; } system("cat $filename"); system("tar -cvf logfiles.tar cat $filename");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: compressing files
by tirwhan (Abbot) on Nov 16, 2006 at 16:35 UTC | |
|
Re: compressing files
by davorg (Chancellor) on Nov 16, 2006 at 16:25 UTC | |
by ikegami (Patriarch) on Nov 16, 2006 at 16:39 UTC | |
by Corion (Patriarch) on Nov 16, 2006 at 17:08 UTC | |
|
Re: compressing files
by marto (Cardinal) on Nov 16, 2006 at 16:32 UTC | |
|
Re: compressing files
by throop (Chaplain) on Nov 16, 2006 at 16:52 UTC | |
|
Re: compressing files
by wazoox (Prior) on Nov 16, 2006 at 17:02 UTC | |
|
Re: compressing files
by mantra2006 (Hermit) on Nov 16, 2006 at 17:23 UTC |