M
Mav
Hi, all
I am trying to lanuch a command on my perl script using system call,
I wonder is that a way when someone hit Ctrl-Y, it will kill my
script,and also kill that system call process as well.
My script:
....
@args = ("doing something take a long time");
if (system(@args)==0) {
print "ok";
} else
print "something wrong";
Please help,
Thanks,
M
I am trying to lanuch a command on my perl script using system call,
I wonder is that a way when someone hit Ctrl-Y, it will kill my
script,and also kill that system call process as well.
My script:
....
@args = ("doing something take a long time");
if (system(@args)==0) {
print "ok";
} else
print "something wrong";
Please help,
Thanks,
M