RE: Using a Perl script in AIX / Unix

2008-07-15 Thread Rob McGinness
;; grep /^Completed\.archive\.\d{1,4}$/ && -M "$dir"."$_" > 2, readdir $dh; }; foreach (@files) { system ("compress -v $dir$_") == 0 or die $?; # print "$_\n"; }; -Original Message- From: Rob Dixon [mailto:

RE: Using a Perl script in AIX / Unix

2008-07-14 Thread Rob McGinness
Thanks Rob Dixon and John W. Krahn for your help I really appreciate it. This is what I came up with based on your examples and the code works great. Thanks again. Rob McGinness #!/usr/bin/perl my $dir = "/cert/ImpactServer-5_4/cl9/ctrl_sfm9/sfm9_sched/archives/"; my $dh

Using a Perl script in AIX / Unix

2008-07-09 Thread Rob McGinness
the rest. I know it's not a permissions issue with the files because when I run the script a second time it will compress the next file successfully and get errors on the remaining files. I am using AIX operating system. Any help would be greatly appreciated. Thanks in advance.