Skip to main content

Linux tutorial Run crontab Every 10 Minutes


Each cronjob has following syntax:
# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
# |  |  |  |  |
  *  *  *  *  *  command to be executed
 
To get crontab to run a task every 10 minutes you could type as follow
*/10 * * * * /path/to/command


Once you set */10, the cronjob will be executed each time that the minute can be divided by 10 without remainder. etc 10/10, 20/10 30/10

using the same idea, you can divide the * by 2 3 or 59.

If you wish to run every minute, just put



To get crontab to run a task every minutes you could type as follow
* * * * * /path/to/command

To get this to work in Solaris, use the following example
 0,10,20,30,40,50 * * * * /path/to/command

Comments

Popular posts from this blog

Today's Forex Focus, 30 Jan 2024

 Ah, nephew, let's dive into the Forex market today, shall we? It's like peering into a crystal ball, but with a bit more logic and a lot less mysticism. First up, we've got the EUR/USD pair showing a bit of a bearish tilt. The dollar's holding steady like a rock in a stream, buoyed by investors who've got their eyes glued to the upcoming Federal Reserve policy meeting. There's a bit of a buzz about geopolitical tensions in the Middle East, making investors a bit jittery and giving the dollar a bit of a boost​​. Then, there's talk about the Federal Reserve potentially pushing back against the idea of a rate cut anytime soon. This is like a plot twist in a thriller movie for the traders, who are now less convinced about a rate drop in March. The dollar, meanwhile, is flexing its muscles a bit, up by 0.19% against a basket of currencies. Across the pond, the Euro's taken a bit of a tumble, and there's chatter about when the European Central Bank might ...

Free server for Terraria: Singapore Base

Update: Click here for the latest update IP: 175.156.159.250 port: 7777 password: server672011 email: ohguowei@gmail.com updated: hai, i give up on port forwarding. sorry guys, i will be using hamachi for terraria. this game is just too unstable for multi player hamachi ip: 5.100.228.220 hamachi network: sgterraria hamachi password: sgterraria terraria password: server672011 opening time 12pm to 12am. email me if you need help, but dont expect me to do much since this is a free server.

My thought on Gold fundamental analysis 22 April 2014

Gold broke the 1280USD barrier dragging the bunch of precious metal with it, seem that it will be going down for awhile as the US economic strengthen ( student loan issue? ). Maybe time to get some platinum ?