V
vabby
Hi
I am writing a perl script in which I am using some commnds like, mv,
rcp, rsync, rm etc. How can I get the return codes of these commands.
I read somewhere that the following will work.
my $result = 'mv abc abc.cfg';
But on actually trying this doesnot work. so I used the following
my $result =system('mv abc abc.cfg');
However for commands like rsync this is givin me erroneous results.
Tx
Vaibhav
I am writing a perl script in which I am using some commnds like, mv,
rcp, rsync, rm etc. How can I get the return codes of these commands.
I read somewhere that the following will work.
my $result = 'mv abc abc.cfg';
But on actually trying this doesnot work. so I used the following
my $result =system('mv abc abc.cfg');
However for commands like rsync this is givin me erroneous results.
Tx
Vaibhav