Jiju Thomas Mathew wrote:
>
> > Jiju Thomas Mathew wrote:
> > > > I am having no files in /etc/cron.hourly. I have following line in
> > > > crontab for hour.
> > > > 1 * * * * root run-parts /etc/cron.hourly.
> > > ^^^
> > > this is what makes the error, remark the hourly line by putting a # in
> > > front.
> > > > /bin/bash: root: command not found
> >
> root is no command, but one minute past every hour, cron tries to run what
> is inside
> cron.hourly, does not find any thing to run hence 'command not found'.
>
> I went over this and dumped this to /etc/cron.hourly/dohour
> #!/bin/bash
> echo "done now" > /dev/null
> and done
> chmod u+x /etc/cron.hourly/dohour
>
> this has done the trick and now no error messages on the hour.
Thanks for the info. However if commented there will not be cpu usage.
I thought even for running the script CPU is used. If any more files are
to be run it is better to use hourly. Am i correct? Or irrespective of
it CPU will be used.
--
L.V.Gandhi
MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
http://www.poboxes.com/lvgandhi [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED]
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.