Mahdi A Sbeih wrote:
> Hi all,
Hello,
> I am porting a shell script written in korn shell to perl, and i want to
> see what is the best way to port the "nohup" shell command in perl,
> anyone knows?
Basically the nohup program ignores the HUP signal so:
$SIG{ HUP } = 'IGNORE';
is probably all
Hello Mahdi,
I Don't know whether this is your requirement.But you can run the nohup
command using system() in perl.
system("nohup YourCommand");
Sorry,if this is not what you expected.
--
Prabu.M.A
When I was born I was so surprised
I didnt talk for a period and half
Hello,
It's so easy to simulate 'nohup' command in perl script.Usually you just
fork a child,then parent die,go into child,call setsid to get child become
the session leader,re-open the STDIN,STDOUT,STDERR to a null device (for
example '/dev/null'),last call 'exec' or 'system' to do the things