1 2 3
#!/bin/sh mkdir -p log/ screen -h 1000 -L -Logfile "log/cron-$1-$(date +%y%m%d-%H%M%S).log" -dmS cron-$1 -t $1 flock -n $1.lock ./$1.py