Re: cp command error check

2004-09-17 Thread John W. Krahn
Urs Wagner wrote: Hello Hello, This does not work. `cp $srcfile $dstfile`; || do { print "cannot copy $srcfile to $dstfile"; }; do is also execute if cp working fine. Whz is this so? The next thing I would like to know how I can print the cp's error message. use File::Copy; copy( $srcf

Re: cp command error check

2004-09-17 Thread u235sentinel
I believe you want to print $!. Give it a try. > Hello > > This does not work. > > `cp $srcfile $dstfile`; || do { > print "cannot copy $srcfile to $dstfile"; > }; > > do is also execute if cp working fine. Whz is this so? The next thing I > would like to > know how I can prin

Re: cp command error check

2004-09-17 Thread Wiggins d Anconia
> Hello > > This does not work. > > `cp $srcfile $dstfile`; || do { > print "cannot copy $srcfile to $dstfile"; > }; > > do is also execute if cp working fine. Whz is this so? The next thing I > would like to > know how I can print the cp's error message. > > Thanks > > Urs Th

cp command error check

2004-09-17 Thread Urs Wagner
Hello This does not work. `cp $srcfile $dstfile`; || do { print "cannot copy $srcfile to $dstfile"; }; do is also execute if cp working fine. Whz is this so? The next thing I would like to know how I can print the cp's error message. Thanks Urs -- To unsubscribe, e-mail: [EMAIL PROTEC