What's new

Easy dumb cru question.

  • Thread starter Deleted member 27741
  • Start date
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

D

Deleted member 27741

Guest
I have a cru command setup and have a few questions-

Using "/usr/sbin/cru a WOL "20 4 * * 7 /jffs/userscripts/wolscript"" resulted in the command running every day- does the N66U interpret 7 as every day instead of Sunday (0-6 is standard, I believe).

Will "20 4 * * SUN" work?
 
Using anything other than 0 to 6 is not POSIX compliant so I wouldn't trust it myself. That said, Busybox's cron does support some non-standard options, but not day "7" apparently:
Code:
Feb 21 16:31:00 crond[643]: user admin: parse error at 7

Looks like "sun" would be acceptable. But what's wrong with "0"?
 
I would use Sun, this works for all firmware releases. 0 and 7 produce unexpected results on some older releases.
I use the three letter day variant in all my scripts and never again had complaints, which I had when I was using 0 or 7.
 
Thanks thelonelycoder and ColinTaylor! Nothing wrong with zero- but SUN is more intuitive. I'll give SUN a shot.
 
Similar threads

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top