rudorathod
IS-IT--Management
I have the following part of code in perl
and i am trying to figure out what is wrong and why it fails.
I am running the following command
/usr/loc/bin/shift -v --md5 --record=shift --append-date --no-open=w ~account/ ~/account>> ~/account/shift.log 2>&1
___________________________________________________________
#!/usr/bin/perl
use strict qw(vars);
use Cwd qw(mod_path);
my $src = mod_path(shift(@ARGV) || $ENV{HOME});
die "Directory does not exist: $src" unless -d $src;
___________________________________________________________
so when i look at the shift.log file
it says
"Directory does not exist "
can someone suggest whats wrong
and i am trying to figure out what is wrong and why it fails.
I am running the following command
/usr/loc/bin/shift -v --md5 --record=shift --append-date --no-open=w ~account/ ~/account>> ~/account/shift.log 2>&1
___________________________________________________________
#!/usr/bin/perl
use strict qw(vars);
use Cwd qw(mod_path);
my $src = mod_path(shift(@ARGV) || $ENV{HOME});
die "Directory does not exist: $src" unless -d $src;
___________________________________________________________
so when i look at the shift.log file
it says
"Directory does not exist "
can someone suggest whats wrong