gotcha. thanks----- Original Message ----- From: "Nick Stockton" <nstockton@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, December 22, 2008 2:54 PM Subject: Re: bash script?
It's a while with an infinite loop so once the command in the script file is done executing it will run it again. Don't use nohup or the '&' sign in the script file it's self or else it probably will spon multiple processes as 'nohup command &' would return at once, even though the program would still be running.Nick Stockton----- Original Message ----- From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, December 22, 2008 5:27 PM Subject: Re: bash script?awesome.Is that going to spawn multiple nohups? or just spawn after nohup finishes.----- Original Message ----- From: "Nick Stockton" <nstockton@xxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, December 22, 2008 12:59 PM Subject: Re: bash script?#!/bin/bash while ( : ) do ./moo db.db db.db 8888 doneSave that in a file such as autorun.sh. Then after making the script executible with 'chmod 755 autorun.sh' you can run it and have it stay in the background even when you log out with './autorun.sh &'. With that script I don't think you should even need to use nohup.Nick Stockton----- Original Message ----- From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, December 22, 2008 1:27 PM Subject: bash script? Hello list, i have a command in a bash script that looks like this: nohup ./moo db.db db.db 8888 & When the server shuts down, it just ends the script and that's it.Is there a way to make it start back up again after it shuts down with the bash script?__________ Information from ESET Smart Security, version of virus signature database 3710 (20081222) __________The message was checked by ESET Smart Security. http://www.eset.com __________View the list's information and change your settings at //www.freelists.org/list/programmingblind__________View the list's information and change your settings at //www.freelists.org/list/programmingblind__________ Information from ESET Smart Security, version of virus signature database 3710 (20081222) __________The message was checked by ESET Smart Security. http://www.eset.com__________View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind