Newsflash

Fall 2007 One-Day Linux Training Workshops!

Hands-on, instructor-led Linux and Open Source Software Training is coming to New Jersey and New york City! On a rotating basis, Linux Fundamentals, System and Network Administration will be taught every Saturday starting October 20, 2007 and ending on December 15, 2007.

Events Calendar

September 2010
S M T W T F S
2930311 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 1 2

Latest Events

No Latest Events
Home arrow FAQ arrow Linux Tips arrow How do I make a script behave like a daemon?
How do I make a script behave like a daemon? PDF Print E-mail
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 )
< Previous
Linux is a registered trademark of Linus Torvalds.
All other trademarks are trademarks of their respective owners.
Copyright © Malicom Systems, Inc. - The Linux Training Center 2000 - 2007