The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,811 other followers

*nix: Cron shortcuts @daily, @weekly, @monthly, … (via: Cron and Crontab usage and examples)

Posted by jpluimers on 2015/01/16

Even if you think you are familiar with something, it pays to keep your knowledge current.

I’ve been always struggling with the crontab syntax. It’s flexible, but for most cases overly complex, for instance I still thought I needed “0 0 * * 0” to run something weekly, which I needed.

So I am pretty sure there were no @monthly or @weekly in crontab last century.

Not so any more, and if I’d had the crontab documentation more often, I had known about the crontab shortcuts @reboot, @yearly, @annually, @monthly, @weekly, @daily, @midnight and @hourly many years ago:

Funny thing: even the openSUSE cron docs don’t show these, but it looks like it is from the “crontab.5.diff” dated early this century (:

–jeroen

via:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: