unix - Scheduling in Cron tab for regular interval -


Hello I have 2 jobs, where the second job is to run 30 minutes after the first job.

I am using Krantab-A to setup cron jobs

  1 job 0 * * * * /home/hadoop/datapull.sh Second job / Homo / HDOP /loaddata.sh  

I have set my first task (datapull.sh) which will move upwards.

After this, my second job needs to be run after 30 minutes of first job.

  Come, my first job runs at 1 PMAMPM3 PM4 PM and my second job should be around 1.30 PM, 2.30 PM, 3.30 PM, 4.30 PM.  

How do I schedule my second job in the Cran tab to setup this way? Ned help for the installation of Cron Tab.

Second task:

  30 * * * * / home / Hadoop / loaddata.sh  

This will play your chronos, at 0:30, 1:30, 2:30, 3:30, ... at

< Generally a chronboat is prepared:

  # * * * * * Order to execute # │ │ │ │ │ # │ │ │ │ │ # │ │ │ │ of the week (0-6) (Saturday from 0 to 6 on Saturday, or use the name; 7 is Sunday, equal to 0) # │ │ │ └── ──────── Month (1 - 12) # │ │ Of month of month (1 - 31) # │ └──────────────── ─── Hours (0 - 23) # └───────────────────────── Min (0 - 59)  

What does the asterisk (*) mean

Asterisk indicates that the cron expression matches all the values ​​in the field. For example, the use of asterisks in the fourth field (month) indicates every month.

Slash (/)

SidNote

Other special characters in chronos P>

Slash describes the increments of categories, for example, in the 1st field (minutes), the third minute of 3-59 / 15 hours and then every 15 minutes is indicated. The form is equivalent to the form "* / ..." form "first-last / ...", that is, an increase in the area's largest possible range.

Comma (,)

Comos are used to separate the items in the list, for example, the 5th field (on weekdays) ) Means "Mon, Wade, FRI" is used on Monday, Wednesday and Friday.

Hyphen (-)

Define hyphens categories, for example 2000-2010 each year between 2000 and 2010 ed, indicates its inclusive .

Percent (%)

Commands in percent-mark (%), as long as the backslash () does not escape, convert them into new letters , And all the data after the first% are sent to the command as standard input.

View


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -