shekarkcb has asked for the wisdom of the Perl Monks concerning the following question:
I am using File::Copy to copy files from source to target directory. For running shell commands i can use system or back quote (`), but somebody told me that system will draw more memory , i.e execution time will be more when compared to inbuilt Perl packages. So i stared using File::Copy. But it is failed to copy file saying error "Inappropriate ioctl for device". i Have used copy like this
eval{ copy("$source" ,"$target_input_file"); }; if($!) { open(FAIL,">>failed_copy_$channel"); print FAIL"FAILED TO Copy \"$target\" WITH FROM \"$target_input_file\" +....\n"; close(FAIL); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: copy - Inappropriate ioctl for device
by Anonymous Monk on Feb 10, 2009 at 07:09 UTC | |
by wol (Hermit) on Feb 10, 2009 at 16:31 UTC | |
|
Re: copy - Inappropriate ioctl for device
by lakshmananindia (Chaplain) on Feb 10, 2009 at 07:13 UTC | |
by Anonymous Monk on Feb 10, 2009 at 22:41 UTC | |
by shekarkcb (Beadle) on Feb 11, 2009 at 05:51 UTC | |
by Anonymous Monk on Feb 12, 2009 at 08:13 UTC | |
|
Re: copy - Inappropriate ioctl for device
by Anonymous Monk on Feb 10, 2009 at 07:12 UTC | |
by Anonymous Monk on Feb 10, 2009 at 22:46 UTC | |
by Anonymous Monk on Feb 11, 2009 at 08:38 UTC |