This is a discussion on spawning a process which stays running after logoff within the AIX Operating System forums, part of the Unix Operating Systems category; --> How do you spawn a process which stays running even when log off? I use the & at the ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| How do you spawn a process which stays running even when log off? I use the & at the end of the command line to run it in the background but when I log off, the process dies also. How do I run it so that it will be under pid 1? Thanks in advance. |
| |||
| On Mar 12, 8:11 pm, "C C" <some...@atsbcglobal.net> wrote: > How do you spawn a process which stays running even when log off? > I use the & at the end of the command line to run it in the background > but when I log off, the process dies also. How do I run it so that it will > be under pid 1? > Thanks in advance. $ echo MyProg | at now # Output will be send via mail to the user or $ nohup MyProg 1>/dev/null 2>&1 & hth Hajo |
| |||
| "Hajo Ehlers" <service@metamodul.com> wrote in message news:d78b5f65-95fd-49f7-a38b-740157171fad@b64g2000hsa.googlegroups.com... > On Mar 12, 8:11 pm, "C C" <some...@atsbcglobal.net> wrote: >> How do you spawn a process which stays running even when log off? >> I use the & at the end of the command line to run it in the background >> but when I log off, the process dies also. How do I run it so that it >> will >> be under pid 1? >> Thanks in advance. > > $ echo MyProg | at now # Output will be send via mail to the > user > > or > > $ nohup MyProg 1>/dev/null 2>&1 & > > hth > Hajo > Thank you!!!! I'll use nohup. |
| |||
| C C schrieb: > How do you spawn a process which stays running even when log off? > I use the & at the end of the command line to run it in the background > but when I log off, the process dies also. How do I run it so that it will > be under pid 1? > Thanks in advance. > > in C http://www.koders.com/c/fidAEA7BDF8A...E.aspx?s =md5 |
| |||
| On 13 ÍÁÒ, 02:10, Thomas Braunbeck <Thomas.Braunb...@orange.fr> wrote: > C C schrieb:> How do you spawn a process which stays running even when logoff? > > I use the & at the end of the command line to run it in the background > > but when I log off, the process dies also. šHow do I run it so that itwill > > be under pid 1? > > Thanks in advance. > > in Chttp://www.koders.com/c/fidAEA7BDF8A5505BE388BB0D031CCDFCA32E052E0E.a.... Hi, all! I wonder if it's possible to change running process so that it will stay running after log off. I mean, after it was spawn in an ordinary way. Thanks in advance. Stanislav |
| ||||
| On 13 Mrz., 04:41, asym...@netscape.net wrote: > [...] > Hi, all! > I wonder if it's possible to change running process so that it will > stay running after log off. > I mean, after it was spawn in an ordinary way. > Thanks in advance. > Stanislav beginning with AIX 5.3 an option has been added to nohup command to nohup an existing process. man nohup. |