Re: nohup using perl

2006-07-10 Thread John W. Krahn
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

Re: nohup using perl

2006-07-10 Thread Prabu
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

RE: nohup using perl

2006-07-10 Thread Jeff Peng
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

nohup using perl

2006-07-10 Thread Mahdi A Sbeih
Hi all, 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? Thanks, Mahdi. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]