Home Man
Search
Today's Posts
Register

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in the UNIX for Beginners Questions & Answers forum.

crontab not working

Tags
beginners

 

 
Thread Tools Search this Thread
# 1  
Old 04-24-2011
crontab not working

In /oracle folder, I created a file called "script.ksh" using vi command. The content of script.ksh is

* * * * * echo "welcome">/tmp/capture.log

I want the word "welcome" to be displayed in /tmp/capture.log file every minute.

I have created capture.log under /tmp folder.

Then in /oracle I gave the command crontab script.ksh

Output
I see the word "welcome" displayed only one time. It is not displaying every minute.
# 2  
Old 04-24-2011
You're probably clobbering it every time the cronjob runs. Use >> instead of > to append.

Regards,
Alister
# 3  
Old 04-24-2011
Thanks. It got resolved.
 

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab is not working BPANDEY Red Hat 5 09-17-2015 10:55 AM
Crontab not working Junaid Subhani Shell Programming and Scripting 7 06-06-2015 03:02 PM
A crontab job not working JDBA SuSE 2 05-05-2014 08:17 AM
Crontab not working krebe Linux 4 02-12-2013 04:50 AM
Crontab not working, please help samantha13 UNIX for Advanced & Expert Users 0 08-02-2012 12:25 PM
crontab not working shifahim UNIX for Dummies Questions & Answers 8 08-16-2011 08:22 AM
crontab is not working. getrue Solaris 6 07-27-2011 12:34 AM
crontab not working rajesh_hv UNIX for Advanced & Expert Users 4 10-28-2008 07:45 AM
crontab NOT working baanprog UNIX for Advanced & Expert Users 2 09-26-2006 12:11 PM
crontab not working right kymberm UNIX for Dummies Questions & Answers 3 07-09-2003 04:21 PM


All times are GMT -4. The time now is 08:43 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password