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");
In reply to compressing files by mantra2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |