September 17, 201312 yr hello! I have a crontab running to update yamj once per day (really want once per week but want to get it working first). #Run Yamj-rescan at 2 am every day' >> /tmp/file; echo '00 2 * * * /boot/extra/yamj-rescan >/dev/null 2>&1' >>/tmp/file; crontab /tmp/file; rm /tmp/file here's my issues: 1. how can I tell it actually ran? is there a way to check? a log or something? I had this working about a year ago, and received an email after it ran outlining the output from the job. I liked that, I wish I could have it again! when I do crontab -l, it looks like there are two instances running... not sure why. I added it to my go file, but haven't rebooted. I did paste the above command into putty but only once! any help is appreciated!
September 17, 201312 yr I'd put the commands above in a bash script, log sucess of failure to the syslog, and then call your script with crontab.
September 17, 201312 yr Author Thanks for the reply! Anyway you could be a bit more directive? I'd like to try what you suggest but have never written a script and I am a Linux newb!
September 17, 201312 yr YAMJ outputs a log so you can check if it has updated (it is located in the YAMJ folder).
September 18, 201312 yr Author ok thanks for the heads up on the logs... it appears that it DID run! thanks for steering me in the right direction. when i had this working a year ago, i got an email each time it ran which i liked...is there something in command that is repressing the email? Some other reading suggested that if output is set to dev/null then there will be no email...i see the words below but i'm not sure if that's what they are doing of what i should change them to? (ps also realize i didn't completely paste the whole command in my initial post) crontab -l > /tmp/file; echo '#Run Yamj-rescan at 2 am every day' >> /tmp/file; echo '00 2 * * * /boot/extra/yamj-rescan >/dev/null 2>&1' >>/tmp/file; crontab /tmp/file; rm /tmp/file EDIT: edited my go file to remove the dev null parts above. rebooted server to remove old cron's and load the edited one from the go file. checked that cron loaded using crontab -l. Will now wait till tomorrow morning 2 am to see if i get an email!
September 19, 201312 yr Author hmmm well it does appear that yamj is scanning nightly at 2am, however still not getting an email! in a weird way i'm not even sure i want it, however yamj has a history of being flaky on my system so getting the email reassured me it was running.. here is the edited cron in my go file... any suggestions? crontab -l > /tmp/file; echo '#Run Yamj-rescan at 2 am every day' >> /tmp/file; echo '00 2 * * * /boot/extra/yamj-rescan' >>/tmp/file; crontab /tmp/file; rm /tmp/file i should mention that i successfully get email from the server such as the daily status email, sabdnzb emails, etc
September 21, 201312 yr Author ok after watching this i think i'm figuring it out. haven't got an email for days BUT this am i did get one! i have been watching the logs each day and there has been a log generated each day BUT the log file was quite small... today the log was quite large (the same size as when i run yamj-rescan manually)... so since the log has been small, i think it has started running, but not completed and therefore didn't send the email. today, for some reason, it appears to have fully ran, and for the first time, i did get the email! i guess the next step is to see if it continues to complete running, or what is preventing it from completing
Archived
This topic is now archived and is closed to further replies.