[wellylug] cron usage
Tim Nicholas
tim at nicholas.net.nz
Fri May 21 09:42:39 NZST 2004
Make sure that the first script (in /etc/cron.daily) conforms to the
naming rules used by run-parts.
From the man page (man 8 run-parts)
"run-parts runs a number of scripts or programs found in a single
directory directory. Filenames should consist entirely of upper and
lower case letters, digits, underscores, and hyphens. Subdirectories of
directory and files with other names will be silently ignored."
So basically, make sure you don't have (for example) a scripts called
"script.sh".
Tim
On 21/05/04 09:11, E.Chalaron wrote:
> Hi there
> It seems I have a trouble running a cron.daily directory. Probably straight
> forward for someone used to use this
> Let's call a couple od script in a very simple way... to start with :-)
>
> In /etc/cron.daily I put :
> script1_call
>
> which contains :
> #!/bin/bash
> /usr/bin/script1
>
> I made sure that :
> crond is running
> script is calling script2
> script1 and script2 are root:root 755 in /usr/bin
>
> --> Nothing happened despite I restarted crond yesterday.
>
> I had a look in /var/spool/cron -> nothing
>
> Should I use
> #!/bin/bash
> su - /usr/bin/script1
>
> or chang something in
> # run-parts
> 02 4 * * * root nice -n 19 run-parts /etc/cron.daily
>
> Anything I can do to log the in(activity) of crond ?
> Or did I miss something ? I guess it is very likely to be a right issue than
> anything else but I am getting confused about it.
> Thanks a lot
> Edouard
> lost as usual
>
>
--
Tim Nicholas || Cilix
Email: tim at nicholas.net.nz || Wellington, New Zealand
http://tim.nicholas.net.nz/ || Cell/SMS: +64 21 337 204
More information about the wellylug
mailing list