Solved

Can not create cronjob.

Posted on 2009-04-06
4
239 Views
Last Modified: 2013-12-27
Hi Experts,

I am trying to set the cron job as user niku to run the ksh script But getting the following error...


"/tmp/crontabwoaO2F" 1 line, 51 characters
*/5 * * * * /home/niku/clarprocmon.ksh > /dev/null
crontab: error on previous line; unexpected character found in line.
crontab: errors detected in input, no crontab file generated.
You have mail in /usr/mail/niku

Please help ....

Thanks
0
Comment
Question by:rajsolaris
  • 2
4 Comments
 
LVL 22

Expert Comment

by:blu
Comment Utility
The first thing that jumps out here is the very first field. I don't think */5 is a valid time specifier here. I
suspect that it is complaining about the /, there shouldn't be a slash in any of these fields.  What were you
trying to accomplish with that?
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
Comment Utility
the crontab on solaris does not support the format you put in the first field. you need to replace it with

0,5,10,15,20,25,30,35,40,45,50,55  * * * * /home/niku/clarprocmon.ksh > /dev/null

to get it run every 5 min.
0
 

Author Comment

by:rajsolaris
Comment Utility
You rock Sir.

Thanks a lot  :-)
0
 

Author Closing Comment

by:rajsolaris
Comment Utility
Hello Omarfarid,
You had always been a great help to me. I owe you a champagne bottle !
Thanks.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now