Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-20 Thread Benoît Ganne
(crontab -l 2/dev/null | grep -v cron_prog; echo * * * * * /bin/cron_prog) | crontab - 2/dev/null That's why using the crontab command is a bit tricky, because you're using your host machine command when you're building a new firmware including your package (instead of installing the firmware

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-20 Thread Steven Van Ingelgem
So iiuc I should echo to $${IPKG_INSTROOT}/etc/crontabs/root ? 2008/7/20 Benoît Ganne [EMAIL PROTECTED]: (crontab -l 2/dev/null | grep -v cron_prog; echo * * * * * /bin/cron_prog) | crontab - 2/dev/null That's why using the crontab command is a bit tricky, because you're using your host

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-17 Thread Brian J. Murrell
On Wed, 2008-07-16 at 21:32 +0200, wlanmac wrote: It seems to work well using the crontab command from within your init script - assuming your cron is associated with a service. in start(): (crontab -l 2/dev/null | grep -v $0 echo */10 * * * * $0 checksomething ) |

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-16 Thread Benoît Ganne
How is it possible to create a crontab entry while creating a package? [...] But I would like to do it at such time that the crontab is already modified on the firmware image? I'm not sure to understand: you just want to add a crontab entry at package installation time, right ? If so, you

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-16 Thread Jens Nachtigall
Am Mittwoch, 16. Juli 2008 20:47 schrieb Benoît Ganne: How is it possible to create a crontab entry while creating a package? [...] But I would like to do it at such time that the crontab is already modified on the firmware image? I'm not sure to understand: you just want to add a

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-16 Thread Brian J. Murrell
On Wed, 2008-07-16 at 21:11 +0200, Jens Nachtigall wrote: Interesting, but a bit of a dirty hack for something like cronjobs imho. No, on the contrary. Using published interfaces such as the crontab command to submit cron entries is in fact the official method of adding cron jobs. Hacking

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-16 Thread Steven Van Ingelgem
Thanks Benoit :-), that helps a lot! 2008/7/16 Benoît Ganne [EMAIL PROTECTED]: How is it possible to create a crontab entry while creating a package? [...] But I would like to do it at such time that the crontab is already modified on the firmware image? I'm not sure to understand: you

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-16 Thread Harald Schioeberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That all said, I can't find the cron package in OpenWRT. Can anyone point me (in the source tree I mean) to it? cron is supplied by the busybox harald -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG

Re: [OpenWrt-Devel] Adding entries to the crontab

2008-07-16 Thread wlanmac
It seems to work well using the crontab command from within your init script - assuming your cron is associated with a service. in start(): (crontab -l 2/dev/null | grep -v $0 echo */10 * * * * $0 checksomething ) | crontab - 2/dev/null in stop(): crontab -l 2/dev/null |