Skip to content
New issue

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

EAGAIN doesn't work (for me) #8

Open
deep-42-thought opened this issue Feb 1, 2016 · 0 comments
Open

EAGAIN doesn't work (for me) #8

deep-42-thought opened this issue Feb 1, 2016 · 0 comments

Comments

@deep-42-thought
Copy link

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:

  • at even minutes due to direct call from dcron and
  • odd minutes due to "exit 11" during even minutes.
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant