Solved

Can not create cronjob.

Posted on 2009-04-06
4
243 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
ID: 24080737
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
ID: 24080926
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
ID: 24080990
You rock Sir.

Thanks a lot  :-)
0
 

Author Closing Comment

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

828 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