whats wrong with this:
Code:
my $logDir = "/var/log/httpd";
my $bkupDir = "$logDir/bak";
@mvargs = ("/bin/mv", '$logDir/*_log', "$bkupDir");
system(@mvargs) == 0 or die "Couldnt exec $!";
im getting the followign error:
Code:
/bin/mv: cannot stat `$logDir/*_log': No such file or directory
Couldnt exec at axsl.pl line 24.
ive tried putting " around the argument too, but same thing happened... what do i have to do to expand the args ?
Slidey