I've got a script that's doing a bunch of system commands,
some of these system commands take a long time,
such as a recursive copy on a large directory structure.
It seems that if the user presses control-C during the
copy command, the command quits, but then the perl script
seems to continue on from that point.
I'm not doing an eval around the system() call.
After the system call, how do I test for a control-c
as the cause for the command ending?
Oh, and I can't simply say
system('cp -r longtree dest')==0 or die $@;
because some system commands will fail because the
directory doesn't exist or something, and in those
cases, I want the script to keep going.
simple solutions appreciated.
Greg
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm