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

Trouble with cron #755

Closed
zfleeman opened this issue Jun 16, 2012 · 1 comment
Closed

Trouble with cron #755

zfleeman opened this issue Jun 16, 2012 · 1 comment

Comments

@zfleeman
Copy link

The script I wrote to execute my Overviewer commands used to execute swimmingly with cron on every fourth hour a couple of days ago. After upgrading to Ubuntu Server 12.04 and reinstalling Overviewer, cron chooses to ignore my script altogether.

Here are the contents of my script:

!/bin/bash

overviewer.py --verbose --config=/home/zfleeman/website/zfleeman.com/minecraft/map/overviewer_config.py

The script runs fine whenever I execute the exact same line as in my cron. When cron tries to do this, something goes wrong. Here's the line in my crontab:

0 */4 * * * bash /home/zfleeman/website/zfleeman.com/minecraft/map/overviewer.sh

Here's the error as described in postfix:

/home/zfleeman/website/zfleeman.com/minecraft/map/overviewer.sh: line 3: overviewer.py: command not found

I do not understand this at all, because overviewer.py runs just fine when I execute overviewer.sh.

Any help at all would be greatly appreciated.

@zfleeman
Copy link
Author

I think a direct location to overviewer.py would help as well.

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