NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
viperhansa
Oct 08, 2015Virtuoso
CRON app or some help appreciated..
Hi all.. Is there a easy way to add actions to cron? some files i want to execute every hour some other files once a week some once a day some are php files and some ar perl files. ...
viperhansa
Oct 11, 2015Virtuoso
Hi all..
I have been exprementing with cron and i need some input.
If i put this in a file in cron.d:
# Runs plexwatch scanner every minute
# As stated
* * * * * /opt/plexWatch/plexWatch.pl
Then i find this in the log:
Oct 11 22:56:01 Hoa-Nas-Pro cron[2211]: (*system*plexwatch) RELOAD (/etc/cron.d/plexwatch)
Oct 11 22:56:01 Hoa-Nas-Pro cron[2211]: Error: bad command; while reading /etc/cron.d/plexwatch
Oct 11 22:56:01 Hoa-Nas-Pro cron[2211]: (*system*plexwatch) ERROR (Syntax error, this crontab file will be ignored)
My second cron attempt is put in cron.hourly and looks like this:
#
# Api pull off km's
# every hour, 5min past whole hour.
5 * * * * /data/ieexkb/cron/cron_api.php
This results in the log:
ct 11 23:01:01 Hoa-Nas-Pro cron[2211]: (*system*cron_api) RELOAD (/etc/cron.hourly/cron_api)
Oct 11 23:01:01 Hoa-Nas-Pro cron[2211]: Error: bad minute; while reading /etc/cron.hourly/cron_api
Oct 11 23:01:01 Hoa-Nas-Pro cron[2211]: (*system*cron_api) ERROR (Syntax error, this crontab file will be ignored)
What am i doing wrong?? Help please! :-)
regards
Hans
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!