Setting up cron


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Setting up cron
# 8  
Old 12-14-2012
Code:
* 6-11 * * *  triggeralert.ksh

Runs every minute from 6:00 to 11:59 every day.
# 9  
Old 12-14-2012
Hi,

Basically am Tibco professional and i want to setup the cronjob based on the client requirement. I don't know about cronjobs in unix. Could you please help me the command to setup.

Thanks
kirankumar
# 10  
Old 12-14-2012
You have been given the cron line in detail and a link explaining the commands in detail.

Ask more specific questions and we can give more specific answers.
# 11  
Old 12-14-2012
Hi,

I don't know whether this forum helps me or not.See first of all i can't understand the cronjob in the specified link and moreover i am struggling to setup the cronjob because the client is irritating me to setup the job. Could you please help me anyone of them to use your expertise to post the command.

thanks for help...

thanks in advance
kirankumar
# 12  
Old 12-14-2012
Can you tell me if you want to run this script once every hour between 6 AM PST and 12 AM PST:-
Code:
@ 6:00 AM
@ 7:00 AM
@ 8:00 AM
@ 9:00 AM
@ 10:00 AM
@ 11:00 AM
@ 12:00 AM

So total 7 times, Am I correct?
# 13  
Old 12-14-2012
Yes u are right.. script runs every hour between 6 AM and 12 AM PST..

Thx,
kirankumar
# 14  
Old 12-14-2012
What did you not understand about it?

you set up cron entries by editing a user's cron table. It's a text file, with one entry per line. You do that by crontab -l user -e, or if you're logged in as them, just crontab -e. The text editor used will probably be vi or vim.

Cron entries are lines of text. Type or paste in the text you want, save, and quit.

See man 5 crontab for the exact meaning of the line.

All of this was in earlier posts and linked threads, I'm just regurgitating here.

The line given above will run every minute, for every hour, use an exact minute like 0 instead of *.

Code:
0 6-12 * * *  /absolute/path/to/triggeralert.ksh

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Setting default permissions without umask or cron jobs

I've got a number of people sending files to me in different directory structures, and users on many different groups who need access to these incoming paths. My problem is that umask assumes a default of 666 for files. No execute bit, meaning that my users can't even see the incoming folders.... (2 Replies)
Discussion started by: Karunamon
2 Replies

2. UNIX for Dummies Questions & Answers

Need help setting up a CRON job

Okay I am not the best at UNIX, so please excuse this if it is a complete ID 10-T error (look at that for a moment...) Logging in via telnet to the server, I want to create a cron job to run various "canned reports" in SAS on a regular basis. No problem, I have the directories, .profile... (14 Replies)
Discussion started by: RussellNonBrand
14 Replies

3. Shell Programming and Scripting

Setting environment variables in Cron file

Hi, In Cron file i'm using username and password hard-coded and now i wann to use environmental veraiables in cron file. But Could you please guide me how to use these environmental variables in cron file ? Thanks, Shyamu.A (4 Replies)
Discussion started by: shyamu544
4 Replies

4. UNIX for Dummies Questions & Answers

Setting up More than One Cron Job

Hello, it is possible to setup two cron jobs to run at different frequencies? I have a cron job which runs from monday -friday every 5 mins .I also want to have one more cron job which runs on a sunday.. It it possible to have? Thanks (5 Replies)
Discussion started by: valluvan
5 Replies

5. Solaris

cron tab setting

hi guys , i need some help i want to set cron job for every sunday , of each month so any body plz help or this proble :confused: (1 Reply)
Discussion started by: Kbharat20
1 Replies

6. Shell Programming and Scripting

setting a cron job

Greetings i am a newbie to this so kindly bear with me. I have a script to get weather information from a site and save that into a database. wget Cranfield Weather Forecast temp = $(cat wx.php | grep -o "Temperature.......") rm wx.php mysql -D "weather_wise" -e "insert into weather... (6 Replies)
Discussion started by: tererez
6 Replies

7. Shell Programming and Scripting

cron job setting

hi all I had one script which i had put in /home/name/xxx.sh directory. I want to put it in cron job list means this script must be run on each day at morning 9 am. Kindly reply me all necessary change with exact path detail. Means where i had to do changes. Thanks in adavance. ... (2 Replies)
Discussion started by: jaydeep_sadaria
2 Replies

8. UNIX for Dummies Questions & Answers

Listing and setting up cron jobs

How can I list the existing cron jobs in my system, and then how can I add my script to the cron jobs list? Thanks. (3 Replies)
Discussion started by: NycUnxer
3 Replies

9. Solaris

Setting environment variables within cron jobs!!

Is it possible to use environment variables within cron jobs. I am using a cron job to run a c program at regular intervals. The C program uses a library and i have set the library path in the LD_LIBRARY_PATH environment variable. But when i ran the job i got the error library not found!! Any... (1 Reply)
Discussion started by: atheek
1 Replies

10. UNIX for Dummies Questions & Answers

Cron not retaining TERM setting

Hi, I'm sure there's something I'm simply not grasping, but I have a third-party utility (TPU) that needs to run in cron. This utility displays it's output in several formats, depending on the TERM value. cron has no TERM value by default, which results in the TPU dying with an error Sorry, I... (2 Replies)
Discussion started by: steelrose
2 Replies
Login or Register to Ask a Question