⇤ ← Revision 1 as of 2009-11-19 15:58:30
Size: 690
Comment:
|
Size: 692
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
{{{# crontab file. Use cron crontab to load the file | {{{ # crontab file. Use cron crontab to load the file |
Python
Starting a Python 2.6.2 script automatically
# crontab file. Use cron crontab to load the file # ENTRIES: # # Minute 0-59 # Hour 0-23 # Day of month 1-31 # Month 1-12 # Day of week 0-6, with 0 = Sunday # Start script every hour and write output in logfile 0 * * * * /path/to/test.py > /path/to/test.log 2>&1
source /client/etc/profile.zmaw module load R/2.7.0 module load Python/2.6.2 ./test.py
#test.py import sys print sys.version
Don't forget to make these files executable with chmod +x filename.