DerFuchs
10-05-2005, 16:48
Hi.
Some programs should be executed every five minutes. Its easy to set up a cronjob table by hand after loging on the router, but if I try to make them part of the image they do not work. The crontab file is part of the image since I can see on the router; but calling: crontab -e exits with:
" crontab: unable to create /var/spool/cron/crontab.316 "
my crontabfile:
* * * * * /bin/foo # foo is called each minute
Makefile:
install:
mkdir -p $(INSTALLDIR)/var/spool/cron/crontabs
install -D crontab $(INSTALLDIR)/var/spool/cron/crontabs/admin
Is there an other way to store 'static' crontabs? I think I could set them up via post-boot procedure but I though it would be prettier to do it this way.
kind regards
DerFuchs
Some programs should be executed every five minutes. Its easy to set up a cronjob table by hand after loging on the router, but if I try to make them part of the image they do not work. The crontab file is part of the image since I can see on the router; but calling: crontab -e exits with:
" crontab: unable to create /var/spool/cron/crontab.316 "
my crontabfile:
* * * * * /bin/foo # foo is called each minute
Makefile:
install:
mkdir -p $(INSTALLDIR)/var/spool/cron/crontabs
install -D crontab $(INSTALLDIR)/var/spool/cron/crontabs/admin
Is there an other way to store 'static' crontabs? I think I could set them up via post-boot procedure but I though it would be prettier to do it this way.
kind regards
DerFuchs