From: Torchris <chr...@ro...> - 2008-11-09 03:20:17
|
Actually, I set up a very simple script just to test it and it is working. Must be something with my script. Thanks! Chris Jason Axelson wrote: > > The format looks okay to me. But wouldn't it be better of you used > */10? So it would look like this: > > */10 * * * * /var/www/turn_on.sh > > How do you know your script is not running? Perhaps there is a > problem with your script. > > Jason > > On Sat, Nov 8, 2008 at 11:30 AM, Torchris <chr...@ro...> wrote: >> >> Hi Andrew, >> >> I just checked this file, and this is what it looks like: >> >> # DO NOT EDIT THIS FILE - edit the master and reinstall. >> # (/tmp/crontab.23008 installed on Sat Nov 8 00:04:53 2008) >> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp >> $) >> 0,10,20,30,40,50 * * * * /var/www/turn_on.sh >> >> This actually correctly shows the task that I had set up via "crontab >> -e". >> It is supposed to run the shell script "turn_on.sh" every 10 minutes, but >> it >> doesn't run. Maybe I have the format of the cron task entered >> incorrectly? >> >> thanks, >> >> Chris >> >> >> >> Andrew MacIsaac-2 wrote: >>> >>> Hi, >>> >>> The file that you actually want to edit is /var/cron/tabs/root (assuming >>> your script is to be run as root). As far as I can tell /etc/crontab >>> and >>> /etc/cron/crontabs/root are ignored by the cron implementation on the >>> gumstix. >>> >>> I have been able to run various cron jobs by putting them in this file >>> using >>> the standard crontab format. >>> >>> Andrew >>> >>> P.S. This is for OE. I have never set up cron on a buildroot-based >>> system. >>> >>> On Sat, Nov 8, 2008 at 8:35 AM, Torchris <chr...@ro...> >>> wrote: >>> >>>> >>>> Has anyone been able to get cron running on your Gumstix? >>>> >>>> thanks, >>>> >>>> Chris >>>> >>>> >>>> Torchris wrote: >>>> > >>>> > Hi Jason, >>>> > >>>> > Thanks for the quick reply. >>>> > >>>> > I have used "crontab -e" and entered the info and the task doesn't >>>> start >>>> > running. Do I need to re-initialize cron somehow? >>>> > >>>> > regards, >>>> > >>>> > Chris >>>> > >>>> > >>>> > >>>> > Jason Axelson wrote: >>>> >> >>>> >> Many times you don't edit the crontab manually. Instead use >>>> "crontab >>>> -e" >>>> >> >>>> >> On Fri, Nov 7, 2008 at 8:56 AM, Torchris <chr...@ro...> >>>> wrote: >>>> >>> >>>> >>> Hello, >>>> >>> >>>> >>> I have a PHP script I need to have executed regularly and I would >>>> like >>>> >>> to >>>> >>> know how to enable this via cron. When I look back at previous >>>> threads >>>> >>> on >>>> >>> this I don't think they explain it clearly. >>>> >>> >>>> >>> I do know how to structure the cron file and when id do "ps" I can >>>> see >>>> >>> that >>>> >>> cron is running. I modified the file found in "/etc/cron/crontabs", >>>> but >>>> >>> it >>>> >>> doesn't seem to take effect. Just a bit confusing. >>>> >>> >>>> >>> Supplementary bonus point question - can you turn off a cron task >>>> via >>>> a >>>> >>> PHP >>>> >>> script? >>>> >>> >>>> >>> Thanks, >>>> >>> >>>> >>> torchris >>>> >>> -- >>>> >>> View this message in context: >>>> >>> >>>> http://www.nabble.com/Setting-up-Cron-on-Gumstix-tp20386809p20386809.html >>>> >>> Sent from the Gumstix mailing list archive at Nabble.com. >>>> >>> >>>> >>> >>>> >>> >>>> ------------------------------------------------------------------------- >>>> >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> >>> challenge >>>> >>> Build the coolest Linux based applications with Moblin SDK & win >>>> great >>>> >>> prizes >>>> >>> Grand prize is a trip for two to an Open Source event anywhere in >>>> the >>>> >>> world >>>> >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> >>> _______________________________________________ >>>> >>> gumstix-users mailing list >>>> >>> gum...@li... >>>> >>> https://lists.sourceforge.net/lists/listinfo/gumstix-users >>>> >>> >>>> >> >>>> >> >>>> ------------------------------------------------------------------------- >>>> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> >> challenge >>>> >> Build the coolest Linux based applications with Moblin SDK & win >>>> great >>>> >> prizes >>>> >> Grand prize is a trip for two to an Open Source event anywhere in >>>> the >>>> >> world >>>> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> >> _______________________________________________ >>>> >> gumstix-users mailing list >>>> >> gum...@li... >>>> >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >>>> >> >>>> >> >>>> > >>>> > >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Setting-up-Cron-on-Gumstix-tp20386809p20397723.html >>>> Sent from the Gumstix mailing list archive at Nabble.com. >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great >>>> prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>> world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> gumstix-users mailing list >>>> gum...@li... >>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users >>>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> gumstix-users mailing list >>> gum...@li... >>> https://lists.sourceforge.net/lists/listinfo/gumstix-users >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Setting-up-Cron-on-Gumstix-tp20386809p20400623.html >> Sent from the Gumstix mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Setting-up-Cron-on-Gumstix-tp20386809p20403063.html Sent from the Gumstix mailing list archive at Nabble.com. |