On Tue, 10 Jul 2001, b g wrote:
> the loop contains system() comand, that boots the big program. everything
> goes ok untill i logout. when i do logout, the programs are killed.
> how can i prevent this?
two ways:
a. by making your program a daemon. daemons are unix processes which run
without a controlling terminals - they keep running even when you are
logged out. you might be interested in checking out my 'daemons and
other monsters' lecture for haifux, on how to write daemons. it's
available at http://www.pointer.co.il/~mulix/daemon-lecture/
b. by using nohup(1). from the manpage:
nohup runs the given command with hangup signals ignored
and the scheduling priority increased by 5, so that the
command can continue running in the background after you
log out.
have fun..
--
mulix
http://www.advogato.com/person/mulix
linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]