Solved

Can not create cronjob.

Posted on 2009-04-06
4
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

691 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