+ Post New Thread
Results 1 to 9 of 9
*nix Thread, Can't make cron work in Technical; I made a jump to Debian from Slackware a few weeks ago. The only weird thing I haven't been able ...
  1. #1

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,852
    Thank Post
    412
    Thanked 773 Times in 646 Posts
    Rep Power
    168

    Unhappy Can't make cron work

    I made a jump to Debian from Slackware a few weeks ago. The only weird thing I haven't been able to fix is cron: it's running, and I have entries in my crontab to pick up some mailboxen, but they don't happen *ever*.

    I've checked that:
    • Cron is running
    • I can run the commands fine from a shell myself
    • I don't have an /etc/cron.allow or cron.deny file.
    • Things in the daily list do take place (like update notifications)
    • All my command use full paths

    Can anyone shed any light? I haven't yet found a useful combination of google terms..

  2. #2
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    282
    Thank Post
    14
    Thanked 28 Times in 23 Posts
    Rep Power
    12
    are you editing using crontab -e ?

    (crontab -l to list)

    I appreciate that as a slackware user, your *nix skills are probably beyond mine, but I have no trouble with crontab on debian as root.

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,852
    Thank Post
    412
    Thanked 773 Times in 646 Posts
    Rep Power
    168
    Quote Originally Posted by kesomir View Post
    are you editing using crontab -e ?

    (crontab -l to list)
    Yes, and it claims to install it properly, just that nothing ever happens.

    I appreciate that as a slackware user, your *nix skills are probably beyond mine, but I have no trouble with crontab on debian as root.
    This is a normal user of course, but I don't see why it should be any different.

    Weird.

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,411
    Thank Post
    322
    Thanked 715 Times in 644 Posts
    Rep Power
    199
    Seeing crontab -l would be useful..

  5. #5

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,852
    Thank Post
    412
    Thanked 773 Times in 646 Posts
    Rep Power
    168
    Yes, I was just posting it and realised what I'd done.. I redirect stdout to /dev/null, and typo'd. Rather than mailing me telling me I'd errored, it just dropped the job.

    Works now Thanks guys

  6. #6


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,411
    Thank Post
    322
    Thanked 715 Times in 644 Posts
    Rep Power
    199
    For anyone else who comes across this thread with issues cron related, I'd urge them NOT to redirect the output to /dev/null until they are certain the job is working as the annoying emails in this case would have revealed the issue.

    Glad its working

  7. #7

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,852
    Thank Post
    412
    Thanked 773 Times in 646 Posts
    Rep Power
    168
    And I'd urge you not to copy your old crontab like-for-like assuming the commands still work... prove them with the annoying emails first, then redirect Don't depend on stderr!

  8. #8
    clodhopper's Avatar
    Join Date
    May 2007
    Location
    Portsmouth
    Posts
    40
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    12
    Install Webmin (Webmin), makes things like cron really easy to work with :-)

  9. #9

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,852
    Thank Post
    412
    Thanked 773 Times in 646 Posts
    Rep Power
    168
    I'm not a great fan of webmin (purely personal choice), but this is also my workstation

SHARE:
+ Post New Thread

Similar Threads

  1. "if you can't work with them, work round them"
    By djm968 in forum General Chat
    Replies: 45
    Last Post: 30th June 2008, 11:13 AM
  2. How to make changes to the registry
    By FN-GM in forum Scripts
    Replies: 6
    Last Post: 27th January 2008, 10:04 AM
  3. This will make you laugh!
    By in forum General Chat
    Replies: 12
    Last Post: 23rd June 2007, 09:13 AM
  4. Make your own games!
    By Dos_Box in forum Downloads
    Replies: 2
    Last Post: 13th December 2006, 09:17 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •