12-27-2011, 02:10 PM | #1 |
Enthusiast
Posts: 48
Karma: 33436
Join Date: Dec 2011
Device: Kindle 4 Touch
|
Crontabs Kindle 4 Touch
I was attempting to set up a script to run on @reboot with crontabs on the kindle 4 touch but nothing seems to be working with it. Even tried to output the log file but nothing happens, by all appearances it doesn't seem to be using crontabs (/etc/crontabs/root).
Has anyone had any luck setting up cron jobs on the kindle 4 touch? |
01-01-2012, 09:16 AM | #2 |
Newsbeamer dev
Posts: 122
Karma: 1000
Join Date: Dec 2011
Device: Kindle Voyage
|
I can't see why crontab would be any different with the K4 touch. Presumably you're running crontab on a headless linux server?
It'd be useful to find out where it's failing. What commands are you running via cron? Presumably they work as expected when running them manually? And have you checked the mail of the account you're running cron under, as it will post mail once it's ran. |
Advert | |
|
01-01-2012, 11:45 AM | #3 |
Member
Posts: 15
Karma: 10
Join Date: May 2011
Device: Bold 9000/Kindle Keyboard/Kindle Touch
|
cron works for me. Did you restart the service or device after the changing?
|
01-02-2012, 08:41 AM | #4 |
Enthusiast
Posts: 48
Karma: 33436
Join Date: Dec 2011
Device: Kindle 4 Touch
|
Yep
The specific command I was attempting to run was @reboot (run script) > /mnt/us/log I ran the script independently so I know that part worked just fine but it wouldn't run it when I edited /etc/crontabs/root to run the script, nor would it log the file (just for the record I tried with and without trying to log the event) @lumanz were you also editing the crontabs folder, or were you editing it elsewhere? Were you also doing @reboot? Oh, and I also tried having it run the command in the script directly rather than having it call a script to run |
01-02-2012, 08:54 AM | #5 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
At reboot, accessing files on the /mnt/us partition fails with "Stale NFS mount" errors, during some parts of the reboot cycle. Perhaps you need to delay when cron starts your script, or have your script do a long sleep call before writing to /mnt/us/log. Or for testing, you could write to /var/local/log/mylog instead of /mnt/us/log.
Last edited by geekmaster; 01-02-2012 at 09:14 AM. |
Advert | |
|
01-02-2012, 10:00 AM | #6 |
Newsbeamer dev
Posts: 122
Karma: 1000
Join Date: Dec 2011
Device: Kindle Voyage
|
Have you checked the user mail though? Cron will mail the error to the user.
And have you tried running cron as a user rather than root? |
01-02-2012, 10:06 AM | #7 |
Member
Posts: 15
Karma: 10
Join Date: May 2011
Device: Bold 9000/Kindle Keyboard/Kindle Touch
|
|
01-03-2012, 11:15 AM | #8 |
Enthusiast
Posts: 48
Karma: 33436
Join Date: Dec 2011
Device: Kindle 4 Touch
|
I actually got what I wanted to happen via another method. Still not sure if the hang up was the @reboot part or something else. I might try to have it run a dummy script just to find out.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Torn: Nook Simple Touch, Kindle Touch, Basic Kindle | dblb48 | Which one should I buy? | 12 | 12-13-2011 02:34 PM |
ConsumerReport: E-book readers: Nook Simple Touch tops Kindle Touch | afv011 | Barnes & Noble NOOK | 4 | 11-22-2011 03:39 PM |
A Kindle, Kobo Touch, Nook Simple Touch or something else? | David732 | Which one should I buy? | 4 | 10-26-2011 12:31 AM |
Kindle 4th gen non touch vs Nook Simple Touch | shinew | Which one should I buy? | 8 | 10-07-2011 09:10 PM |
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch | jbcohen | Which one should I buy? | 4 | 06-18-2011 07:58 PM |