Re: Why are cron.hourly files not running?
- From: "Joel Goguen" <jtgoguen@xxxxxxxxx>
- Date: Sun, 15 Jul 2007 22:05:29 -0300
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
- Follow-Ups:
- Re: Why are cron.hourly files not running?
- From: Larry Alkoff
- Re: Why are cron.hourly files not running?
- From: Larry Alkoff
- Re: Why are cron.hourly files not running?
- References:
- Why are cron.hourly files not running?
- From: Larry Alkoff
- Why are cron.hourly files not running?
- Prev by Date: Why are cron.hourly files not running?
- Next by Date: Question of curiosity (RB ability question)
- Previous by thread: Why are cron.hourly files not running?
- Next by thread: Re: Why are cron.hourly files not running?
- Index(es):
Relevant Pages
|