We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
if a job returns code 11, it should be scheduled again, but isn't (in my setup). A simple script to test this is:
bit=$(bc <<< "(($(date +%s)+30)/60)%2") echo -n "${bit}: " >> /tmp/logfile date >> /tmp/logfile [ ${bit} -eq 0 ] && exit 11 exit 0 and then add "*/2 * * * * ID=test /path/to/toggle" to your crontab.
The script should be run each minute:
I'm runing crux (crux.nu) and installed dcron from source: http://www.jimpryor.net/linux/releases/dcron-4.5.tar.gz
cheers, deepthought
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
if a job returns code 11, it should be scheduled again, but isn't (in my setup).
A simple script to test this is:
!/bin/bash
bit=$(bc <<< "(($(date +%s)+30)/60)%2")
echo -n "${bit}: " >> /tmp/logfile
date >> /tmp/logfile
[ ${bit} -eq 0 ] && exit 11
exit 0
and then add "*/2 * * * * ID=test /path/to/toggle" to your crontab.
The script should be run each minute:
However, it's only run at even minutes.
I'm runing crux (crux.nu) and installed dcron from source: http://www.jimpryor.net/linux/releases/dcron-4.5.tar.gz
cheers,
deepthought
The text was updated successfully, but these errors were encountered: