Re: Why are cron.hourly files not running?



Try this in your test script:

#!/bin/bash
set > /etc/cron.hourly/testing

That first line marks this as a shell script. All the other cron.X
files are scripts too. I tried this and the file was properly
created.

HTH

On 7/15/07, Larry Alkoff <labradley@xxxxxxxxxxxxxx> wrote:
I have various files in /etc/cron.hourly and /etc/cron.daily that are
not running.

I just tested this by placing a simple executable file in cron.hourly
that runs the bash built-in executable set and directs it to a file
but the file is never created.

What could I be doing wrong? Should the owner be the user admin?

-rwxr--r-- 1 root root 30 2007-07-15 16:20 set-test

I also tried changing the permissions to rwxrwxr-- like most of the
items in /etc/cron.daily which came from the original Kubuntu install
but it still doesn't run.

Hope someone can suggest what is going wrong.

Below are the technical details of how I tested and the entries in syslog.




root@kinda cron.hourly # cat set-test
set >/etc/cron.hourly/testing

ps ax reports that cron is running.

root@kinda log # tail syslog
Jul 15 17:17:01 kinda /USR/SBIN/CRON[1176]: (root) CMD ( cd / &&
run-parts --report /etc/cron.hourly)

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
Joel Goguen
http://jgoguen.net/

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users