Re: Why are cron.hourly files not running?

Try this in your test script:

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


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
Modify settings or unsubscribe at:

Joel Goguen

ubuntu-users mailing list
Modify settings or unsubscribe at:

Relevant Pages

  • Re: pop-forum Re: poplog-dev A look at Poplog on the Macintosh
    ... with the poplink command. ... When trying to make pglink produce a 'sh' rather than a 'csh' shell ... script for linking and when trying to make it put unexpanded environment ... using the shell script pglibr, ...
  • Files appear to be cross linked
    ... script requires a number of standard environment variables to be set ... so it calls a second shell script to set these at the session level, ... control should return to the first shell script, ... that the script executes to the last line prior to the displaying of ...
  • Re: [PHP] Catch STDERR
    ... into your PHP script? ... Or do you just need STDOUT in one variable, and STDERR in another, ... Another option is to try to write a .sh shell script to get what you ...
  • Re: Converting large bash script to TCL
    ... I know that TCL and shell scripting share a lot of similarities. ... The shell script ... Determine what it (the script) is supposed to do ... echo "WOULD YOU LIKE TO INSTALL NAC DRIVER ...
  • Re: basic questions
    ... Setting a script that runs at 3:00 ... Set chron to run that shell script. ... Debug the GUI application with the REPL. ... You start up the Web browser, then browse the Web, visit a hundred ...