Need a cronjob command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need a cronjob command
# 1  
Old 04-02-2009
Need a cronjob command

Dear Exerts,

I want to schedule a script which could run after every 35 minutes.
please find below the command but it is not woring and running after every 35 minutes.
Code:
35 * * * * /opt/home/backup/test_dir/abc.sh > /opt/home/backup/test_dir/abc_cronlog.txt

Please tell me what is the problem in this statement

Thanks

Last edited by Yogesh Sawant; 04-02-2009 at 02:22 AM.. Reason: added code tags
# 2  
Old 04-02-2009
Quote:
Originally Posted by shary
Dear Exerts,

I want to schedule a script which could run after every 35 minutes.
please find below the command but it is not woring and running after every 35 minutes.
35 * * * * /opt/home/backup/test_dir/abc.sh > /opt/home/backup/test_dir/abc_cronlog.txt

Please tell me what is the problem in this statement

Thanks
Run:
crontab -l and check whether its scheduled successfully
# 3  
Old 04-02-2009
Hi

It is scheduled successfully but the problem is that the script is not running or executing after 35 minutes.So just have alook that what is wrong in the command.
Regards
# 4  
Old 04-02-2009
does it run well if you run it manually? and have you read this?

consult cron's log /var/log/cron and check if you could find something

Last edited by Yogesh Sawant; 04-02-2009 at 02:33 AM..
# 5  
Old 04-02-2009
yes it running mannulay but not running as per my requirement.
can you please provide me the cron job statement which could run every 35 min .?
# 6  
Old 04-02-2009
Quote:
Originally Posted by shary
yes it running mannulay but not running as per my requirement.
can you please provide me the cron job statement which could run every 35 min .?
You already have one. Take a look at the FAQ link provided by Yogesh Sawant.
# 7  
Old 04-02-2009
I think that it's difficult to schedule a job to run every 35 minutes, unless your cron supports the step ("/") operator.

Last edited by Ygor; 04-02-2009 at 11:53 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cronjob

How to set cronjob for 48 hours. I can set for 2 days as shown below. * * */2 * * It is creating confusion for 30 days & 31 days per month. (3 Replies)
Discussion started by: Nishit
3 Replies

2. UNIX for Dummies Questions & Answers

Top Command Output is not coming via Cronjob

Dear All, I created a small script to get the CPU, GIS usage etc automatically. However when i run this script manually its working , but when i run through cronjob i am not getting any output. Can anyone please help me on this. I am using SuseLinux. Thank you in advance. #!/bin/sh {... (2 Replies)
Discussion started by: Nitin Kapoor
2 Replies

3. Red Hat

cronjob Command for Shutdown

Hi Guys Pls give me cronjob command for Network pcs to be shutDown on 06:05 PM is it possible to do in cronjob ? :wall: (7 Replies)
Discussion started by: babinlonston
7 Replies

4. UNIX for Dummies Questions & Answers

Cronjob help

Hi I am very new to linux. I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me. All I have is this... */15 * * * * ls -l | wc -l | | mail -s "This is just a test" I would... (2 Replies)
Discussion started by: LinuxNewb
2 Replies

5. UNIX for Dummies Questions & Answers

how to cancel a cronjob if the cronjob still running

hi everyone I'm newbie in this forum hope I can get some help here :) I have a command in crontab that executed every 1 minute sometime this command need more than 1 minute to finish the problem is, the crontab execute this command although it's not finish processing yet and causing the system... (7 Replies)
Discussion started by: 2j4h
7 Replies

6. AIX

cronjob

Hi, I want to schedule a script on daily basis in morning 8:00 A.M and 5:00 P.M , how can i achieve this, i want the parameter 0 ? * * * what will be the second parameter in my case. Regards (1 Reply)
Discussion started by: maooah
1 Replies

7. Solaris

at vs cronjob

HI, What is the differnece between at / con job? thanks in advance. (1 Reply)
Discussion started by: mokkan
1 Replies

8. UNIX for Dummies Questions & Answers

cronjob

hi iam new at unix.iam running a cronjob,which i want to run on the first day of every month at 1AM.this is what i have specified: 00 01 1 * * is this corect? (1 Reply)
Discussion started by: wiz83
1 Replies

9. HP-UX

CronJob

Dear Guru, I have submitted some cronjobs that has been running for quite sometimes. However, today I counter some cronjob did not run. Can you please explain what causes this to happen. Any system setting that limit number of cronjob per minutes to be started, etc? Thanks. Kelly (1 Reply)
Discussion started by: hcng08
1 Replies

10. Shell Programming and Scripting

Cronjob

Please can someone help me. I need to set up a cron job to measure CPU usage, Disk I/O and memory usage over a period of 1 minute along with the number of users logged into the system. I also need to send it to another user besides myself every hour. Please can someone help me! Thanks. (4 Replies)
Discussion started by: gerwhelan
4 Replies
Login or Register to Ask a Question