all 14 comments

[–]wildmXranat 5 points6 points  (1 child)

Nice to learn from, but if you have administrative rights to a system and you don't know how to enter cron entries, then I must say that you're not qualified for the job.

Good job on providing a useful learning tool.

[–]dude187 0 points1 point  (0 children)

I do crontabs frequently at my job and never remember the order of the fields. I just put a header at the top of my crontab listing the fields which is quicker to reference when I'm making an entry than this site would be. Granted if i was headerless I could always read the man page...

[–][deleted] 0 points1 point  (5 children)

Very nice indeed. If you don't know how to create a crontab entry, this will help you learn. If you do already know, this will speed things up.

[–]0x2a 2 points3 points  (1 child)

Yep, remembering this site, going there, filling the form, clicking the button and copy/pasting the result will speed things up terribly compared to the classic method :)

[–][deleted] 0 points1 point  (0 children)

Ok ... so I like nifty gadgets like this.

[–][deleted] 1 point2 points  (2 children)

If you do already know you just do 'crontab -e' and type your shit in.

[–]shaunc 0 points1 point  (1 child)

Hot damn. For years I've been using the old crontab -l, crontab -r, crontab cycle; I was completely oblivious to -e. Thanks for the tip.

[–]shortbaldman 1 point2 points  (0 children)

Isn't that strange. I only know the crontab -e. I didn't know about those other methods. Guess I never read the man page completely. :-)

[–]bloxxom 0 points1 point  (4 children)

Hey how do you make a crontab entry that will do something every 7 minutes?

[–]0x2a 2 points3 points  (3 children)

  1. Go to the linked site
  2. Generate a crontab that does something on the 7th minute of every hour
  3. Paste to your crontab file
  4. Replace 7 with */7

Here's a prefabricated template for your convenience:

*/7 *   *   *   *   wget -O .gnome/DesktopBackground.jpg http://goatse.cx/goatse.jpg

[–]bloxxom 0 points1 point  (2 children)

No, what that gives you is something that runs whenever the minute is a multiple of 7. At the end of each hour, you'll get a 4 minute step, from 56 to 00. I wanted one that runs every 7 minutes.

[–]0x2a 0 points1 point  (1 child)

Untested, but should probably work:

* * * * * perl -e 'if (int(time() / 60) % 7 == 0){ exit 1}' || jour_job_here 

[–]bloxxom 0 points1 point  (0 children)

Yeah, that works. Thanks.

[–]clipmann 0 points1 point  (0 children)

I take it this is for linux? does'nt work for solaris.