|
How do I make a script behave like a daemon? |
|
|
|
|
Written by Oliver Wainwright, Jr. - RHCE
|
|
Wednesday, 21 December 2005 |
|
The nohup utility can be used when it is known that command will take a long time to run and the user wants to log out of the terminal.
For example - I want to run vmstat over several days but do not want to remain logged in to the terminal.
If I do the following as root. The command will go to the background and continue to run as I logout of the terminal session.
nohup vmstat 5 | logger -t vmstat > /tmp/vmstat.nohup 2>&1 & |
|
Last Updated ( Wednesday, 21 December 2005 )
|