Hello,
I'm having some strange issues with my crontab. I've got this line in there, which has worked for months: 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
Last night I replaced the jar in question with a new version (same name, location, etc.); since then, it doesn't appear that it's been running or even attempting to run. Usually when it fails to run I get an email, or at the very least something should be entered in that .out file; unfortunately I got no emails, and the file didn't exist, yet my bot didn't make any edits until I started it manually a short while ago. It should have run just now at 16:00 UTC, but again, no dice. Is there something wrong with cron where it's stopped functioning correctly?
---- User:Hersfold hersfoldwiki@gmail.com
My first inclination is that it's a file permissions error with crontab, where the server can't read it because of access issues. That's what happened to me once, though knowing what to change it to, I forget.
DeltaQuad English Wikipedia Administrator
On 09/06/2012 12:02, Hersfold wrote:
Hello,
I'm having some strange issues with my crontab. I've got this line in there, which has worked for months: 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
Last night I replaced the jar in question with a new version (same name, location, etc.); since then, it doesn't appear that it's been running or even attempting to run. Usually when it fails to run I get an email, or at the very least something should be entered in that .out file; unfortunately I got no emails, and the file didn't exist, yet my bot didn't make any edits until I started it manually a short while ago. It should have run just now at 16:00 UTC, but again, no dice. Is there something wrong with cron where it's stopped functioning correctly?
User:Hersfold hersfoldwiki@gmail.com
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Thanks, DQ, it looks like that did it. For reference, I set the permissions to 754: rwxr-xr--
---- User:Hersfold hersfoldwiki@gmail.com
On 6/9/2012 12:20 PM, DeltaQuad wrote:
My first inclination is that it's a file permissions error with crontab, where the server can't read it because of access issues. That's what happened to me once, though knowing what to change it to, I forget.
DeltaQuad English Wikipedia Administrator
On 09/06/2012 12:02, Hersfold wrote:
Hello,
I'm having some strange issues with my crontab. I've got this line in there, which has worked for months: 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar HersfoldArbClerkBot.jar> HersfoldArbClerkBot.out
Last night I replaced the jar in question with a new version (same name, location, etc.); since then, it doesn't appear that it's been running or even attempting to run. Usually when it fails to run I get an email, or at the very least something should be entered in that .out file; unfortunately I got no emails, and the file didn't exist, yet my bot didn't make any edits until I started it manually a short while ago. It should have run just now at 16:00 UTC, but again, no dice. Is there something wrong with cron where it's stopped functioning correctly?
User:Hersfold hersfoldwiki@gmail.com
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
On 09/06/12 18:02, Hersfold wrote:
Hello,
I'm having some strange issues with my crontab. I've got this line in there, which has worked for months: 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
Last night I replaced the jar in question with a new version (same name, location, etc.); since then, it doesn't appear that it's been running or even attempting to run. Usually when it fails to run I get an email, or at the very least something should be entered in that .out file; unfortunately I got no emails, and the file didn't exist, yet my bot didn't make any edits until I started it manually a short while ago. It should have run just now at 16:00 UTC, but again, no dice. Is there something wrong with cron where it's stopped functioning correctly?
User:Hersfold hersfoldwiki@gmail.com
Maybe the new HersfoldArbClerkBot.jar has some dependency which is only fullfilled in the login server? (thus it dies in the new version)
What's the point of that % character?
That redirection is also confusing, since cronsub would use HersfoldAhrbClerkBot.out as output file, and you're also using a redirection to the same file.
toolserver-l@lists.wikimedia.org