[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

summary: Crontab question



The problem was found and it was a simple mistake on my part.
Here is my original question.
Hello,
I have a Linux RedHat server running 6.2 and since I upgraded to 6.2 I
am now getting an error on my cron job. There are errors every hour and
every day. It is getting crazy.

Here is what I am getting ,

/bin/sh: root: command not found

Where is it coming from and how do I fix it?? Any ideas.
I know that it is coming from the crontab but I can su - to root and
then type in the command that it starts every hour with out problems. I
just can't do it automatically with cron.

Solution:
In my /etc/cron.hourly I had this line.
#/!bin/bash

it should have been
#!/bin/bash


Thanks for your help


--
Ron Bramblett
Systems Administrator
The Fuller Brush Company





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]