2nd September 13:38
scheduling a script?
Wrap your python command(s) in a script, the first 3 lines of which are
# chkconfig: 345 99 01
# description: Description of your script intentions
and which contains "start" and "stop" sections; see other scripts in
/etc/rc.d/init.d for examples.
This tells init to run the script in default run levels 3, 4 and 5, with
start/stop priorities of 99 and 01 (e.g., start last, kill first). Then
place the script in /etc/rc.d/init.d.
You can then see the script enablements with "chkconfig --list", and use
other parameters to the chkconfig command to turn the script on or off in
whatever run levels you wish.
Basically, "chkconfig yourscript on" will enable yourscript to start in the
default run levels contained in the script. chkconfig will manage the
creation of the appropriate symlinks in the various run level directories.
use hotmail com for any email replies
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----