in addition to the per-user cron files that you describe, most linux
distros have a cron that also can use the file /etc/crontab, which is the
same format as the per-user files that you are describing, but with two
extra features.
1. it includes an extra field to specify what user the command should run
as.
2. you don't have to install it with the crontab command, you can just
edit the file and cron will notice that it has changed.
David Lang
On Sun, 8 Jan 2012, gettons wrote:
Hi there,
there is.
you have to create a file called root and place it into /etc/crontabs
so you have /etc/crontabs/root ( same syntax you would use on any other linux
machine ).
Crond should be installed by default, you have to make available when the
machine boots up, and I think it is doable with /etc/rc.d/crond enable or
something like that, just run /etc/rc.d/crond without any option.
p.s. a bit old though http://martybugs.net/wireless/openwrt/cron.cgi
Tommaso
On 08/01/12 19:42, Clemens Eisserer wrote:
Hi,
I recently started replacing our debian-based Pentium-90 server with a
TP-Link MR3220 running OpenWRT.
Thanks to the handy extroot mode as well as precompiled postgresql
binaries, the transition was a lot smoother than I had expected -
thanks a lot.
The only thing left is our weekly database-dump - a shell-script which
was executed by a /etc/crontab entry, every sunday running under the
user "postgres".
There does not seem to be a /etc/crontab-file available in OpenWRT -
can I install the "traditional" cron daemon or do I have to migrate
somehow?
Thank you in advance, Clemens
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users