Solved

Can not create cronjob.

Posted on 2009-04-06
4
244 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 …
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

679 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