Cron as user

I've written a little script that I want to be run by a user on a daily basis.
crontab -l
00 22 * * * /home/user/scripts/backup
problem is this job doesn't start unless I manually restart the cron daemon after my user has logged in. I've seen one other person having this problem on the arch forums, but it wasn't resolved as far as I could tell. Any ideas?

rc.local didn't work for me 
This is the thread I had on this a while back if it helps anyone solve this problem. It looked like crond was trying to send mail via sendmail but godamnit, there is no sendmail program installed or available, and no config files to change it that I could see.
http://bbs.archlinux.org/viewtopic.php? … light=cron

Similar Messages

  • [SOLVED] systemd/cron as user: timer doesn't start after boot

    Hello,
    I've tried to follow the wiki's systemd/cron functionality article to have a systemd service to run hourly.
    Everything seems to be working ok, except that the hourly timer doesn't start automatically : I have to issue a
    systemctl --user timer-hourly.timer start
    command every time I start the machine to get the timer running.
    Can you help me understand what I'm missing to get the (user) timer to start automatically after boot?
    Thanks!
    My setup consists of the following files:
    /home/myuser/.config/systemd/user:
    drwxr-xr-x 2 myuser users 4096 Jun 25 17:30 basic.target.wants/
    -rw-r--r-- 1 myuser users 217 Jun 25 10:08 db_backup.service
    -rw-r--r-- 1 myuser users 232 Jun 25 10:08 test.service
    -rw-r--r-- 1 myuser users 61 Jun 19 12:14 timer-hourly.target
    drwxr-xr-x 2 myuser users 4096 Jun 25 10:10 timer-hourly.target.wants/
    -rw-r--r-- 1 myuser users 134 Jun 19 12:14 timer-hourly.timer
    /home/myuser/.config/systemd/user/basic.target.wants/:
    lrwxrwxrwx 1 myuser users 50 Jun 25 10:08 timer-hourly.timer -> /home/myuser/.config/systemd/user/timer-hourly.timer
    /home/myuser/.config/systemd/user/timer-hourly.target.wants/:
    lrwxrwxrwx 1 myuser users 49 Jun 13 15:51 db_backup.service -> /home/myuser/.config/systemd/user/db_backup.service
    lrwxrwxrwx 1 myuser users 44 Jun 25 10:10 test.service -> /home/myuser/.config/systemd/user/test.service
    timer-hourly.timer:
    [Unit]
    Description=Hourly Timer
    [Timer]
    OnBootSec=5min
    OnCalendar=hourly
    Unit=timer-hourly.target
    [Install]
    WantedBy=basic.target
    timer-hourly.target:
    [Unit]
    Description=Hourly Timer Target
    StopWhenUnneeded=yes
    test.service:
    [Unit]
    Description=Run a test (echo) job every hour
    Wants=timer-hourly.timer
    [Service]
    Nice=19
    IOSchedulingClass=2
    IOSchedulingPriority=7
    ExecStart=/usr/bin/python /home/myuser/test_service.py
    [Install]
    WantedBy=timer-hourly.target
    db_backup.service:
    [Unit]
    Description=Backups databases
    Wants=timer-hourly.timer
    [Service]
    Nice=19
    IOSchedulingClass=2
    IOSchedulingPriority=7
    ExecStart=/home/myuser/source/db_backups/db_backup.sh
    [Install]
    WantedBy=timer-hourly.target
    test_service.py is a simple python script that appends the current time to a file, to check if the service is being run by the timer. (it is after I start the timer after boot, and runs correctly every hour)
    db_backup.sh is a script that dumps a database into a text file in a mercurial repository, commits the change and pushes it to backup locations.
    Last edited by fede (2014-06-25 21:06:09)

    Have you tried this:
    systemctl --user enable timer-hourly.timer

  • Crond error: unable to exec /usr/sbin/sendmail: cron output for user .

    I have cronjobs running as a normal user.
    shadyabhi@ArchLinux ~/cronjobs $ crontab -l
    #CronJobs located in $HOME/cronjobs/*
    0 * * * * /home/shadyabhi/cronjobs/snailmail.sh
    * 5 * * * /home/shadyabhi/cronjobs/backup_pkgs.sh
    * 5 * * * /home/shadyabhi/cronjobs/backup_songs.sh
    shadyabhi@ArchLinux ~/cronjobs $ sudo tail -f -n 10 /var/log/crond.log
    Oct 16 09:00:12 ArchLinux crond[13410]: unable to exec /usr/sbin/sendmail: cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh to /dev/null
    Oct 16 09:40:01 ArchLinux crond[1552]: FILE /var/spool/cron/root USER root PID 13622 job sys-hourly
    Oct 16 10:00:01 ArchLinux crond[1552]: FILE /var/spool/cron/shadyabhi USER shadyabhi PID 13739 /home/shadyabhi/cronjobs/snailmail.sh
    Oct 16 10:00:13 ArchLinux crond[13806]: mailing cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh
    Oct 16 10:00:13 ArchLinux crond[13806]: unable to exec /usr/sbin/sendmail: cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh to /dev/null
    Oct 16 10:40:01 ArchLinux crond[1552]: FILE /var/spool/cron/root USER root PID 14418 job sys-hourly
    Oct 16 11:00:01 ArchLinux crond[1552]: FILE /var/spool/cron/shadyabhi USER shadyabhi PID 15527 /home/shadyabhi/cronjobs/snailmail.sh
    Oct 16 11:00:13 ArchLinux crond[15593]: mailing cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh
    Oct 16 11:00:13 ArchLinux crond[15593]: unable to exec /usr/sbin/sendmail: cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh to /dev/null
    Oct 16 11:07:01 ArchLinux crond[1552]: reading /var/spool/cron/cron.update
    ^C
    shadyabhi@ArchLinux ~/cronjobs $ pacman -Q | grep sendmail
    sendmail 8.14.4-1
    shadyabhi@ArchLinux ~/cronjobs $
    Why am I getting that error?

    loafer wrote:The AUR package doesn't install the sendmail binary  for some reason.  There are quite a few comments about this on the AUR page.  I just built it myself.  The sendmail binary is there in the src but it doesn't get installed as part of the package.  Better ask the maintainer about why this is.
    But, I have sendmail binary in /usr/sbin
    shadyabhi@ArchLinux ~ $ whereis sendmail
    sendmail: /usr/sbin/sendmail /usr/share/man/man1/sendmail.1.gz
    shadyabhi@ArchLinux ~ $

  • Cron jobs not running

    Hi
    I am using linux 5.x
    uname -r
    2.6.18-348.16.1.0.1.el5PAE
    I have 2 crontab jobs set up as following .
    cat backup_confluence.sh
    #!/bin/bash
    # bash shell script to backup confluence backups to bccpfr
    # Schedule this script after the backups are performed that day
    # Setup the environment for the bourne-again shell
    . ./.bash_profile
    # Copy the daily backups for confluence
    find /usr/share/confluence/data/backups -mtime -1 \! -type d -exec ls {} \; -exec scp {} bccpfr:/usr/backup/confluence \;
    second
    cat  backup_jira.sh
    #!/bin/bash
    # bash shell script to backup jira backups to bccpfr
    # Schedule this script after the backups are performed that day
    # Setup the environment for the bourne-again shell
    . ./.bash_profile
    # Copy the daily backups for jira
    find /usr/share/jira/backups -mtime -1 \! -type d -exec ls {} \; -exec scp {} bccpfr:/usr/backup/jira \;
    cron as following
    $ crontab -l
    13 06 * * * /home/lsg/backup_jira.sh
    18 06 * * * /home/lsg/backup_confluence.sh
    Issue
    Both the above .sh are running properly when executed  manually but they are not running automatically at the given time crontab job.
    Kindly help me on this issue.
    many thanks
    J

    Is your crontask not running at all or is the scheduled task failing?
    Hey Tommy I sent you some replies yesterday; don't know what happened to them. Yes I can see that crond runs every ten minutes. Also when I created the crontab file using the command you sent here I could see that it was running every minute by looking at root mail in /var/log.
    Do you have execute permission set on the scripts?
    Yes
    Any info in /var/log/messages or e-mail?
    Output from mail-
    From root@razorback  Tue Feb 11 08:19:01 2014
    Return-Path: <root@razorback>
    Received: from razorback (localhost [127.0.0.1])
        by razorback (8.13.8/8.13.8) with ESMTP id s1BEJ154018231
        for <root@razorback>; Tue, 11 Feb 2014 08:19:01 -0600
    Received: (from root@localhost)
        by razorback (8.13.8/8.13.8/Submit) id s1BEJ1rh018198;
        Tue, 11 Feb 2014 08:19:01 -0600
    Date: Tue, 11 Feb 2014 08:19:01 -0600
    Message-Id: <201402111419.s1BEJ1rh018198@razorback>
    From: root@razorback (Cron Daemon)
    To: root@razorback
    Subject: Cron <root@razorback> $(date) >> /tmp/cronout
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    X-Cron-Env: <USER=root>
    /bin/sh: Tue: command not found
    From root@razorback  Tue Feb 11 08:20:02 2014
    Return-Path: <root@razorback>
    Received: from razorback (localhost [127.0.0.1])
        by razorback (8.13.8/8.13.8) with ESMTP id s1BEK2BD018267
        for <root@razorback>; Tue, 11 Feb 2014 08:20:02 -0600
    Received: (from root@localhost)
        by razorback (8.13.8/8.13.8/Submit) id s1BEK1mT018238;
        Tue, 11 Feb 2014 08:20:01 -0600
    Date: Tue, 11 Feb 2014 08:20:01 -0600
    Message-Id: <201402111420.s1BEK1mT018238@razorback>
    From: root@razorback (Cron Daemon)
    To: root@razorback
    Subject: Cron <root@razorback> $(date) >> /tmp/cronout
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    X-Cron-Env: <USER=root>
    /bin/sh: Tue: command not found

  • Backups in cron not running

    I'm trying to run rsnapshot through cron to automate my backups but it's not actually running rsnapshot for some reason . Here's my crontab:
    brian@brian-laptop:/var/log$ sudo crontab -l
    # DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
    # <minute> <hour> <day> <month> <dow> <command>
    01 * * * * /usr/sbin/run-cron /etc/cron.hourly
    02 00 * * * /usr/sbin/run-cron /etc/cron.daily
    22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
    42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly
    00 * * * * pacman -Sy
    00 00 * * * rsnapshot sync && rsnapshot daily
    30 23 * * 0 rsnapshot weekly
    00 23 1 * * rsnapshot monthly
    And here's one of my logs:
    14-Sep-2009 00:02 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 01:00 FILE /var/spool/cron/root USER root pid 12703 cmd pacman -Sy
    14-Sep-2009 01:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 01:01 FILE /var/spool/cron/root USER root pid 12859 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 02:00 FILE /var/spool/cron/root USER root pid 21677 cmd pacman -Sy
    14-Sep-2009 02:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 02:01 FILE /var/spool/cron/root USER root pid 21817 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 03:00 FILE /var/spool/cron/root USER root pid 30278 cmd pacman -Sy
    14-Sep-2009 03:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 03:01 FILE /var/spool/cron/root USER root pid 30442 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 04:00 FILE /var/spool/cron/root USER root pid 6681 cmd pacman -Sy
    14-Sep-2009 04:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 04:01 FILE /var/spool/cron/root USER root pid 6818 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 05:00 FILE /var/spool/cron/root USER root pid 15516 cmd pacman -Sy
    14-Sep-2009 05:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 05:01 FILE /var/spool/cron/root USER root pid 15671 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 06:00 FILE /var/spool/cron/root USER root pid 24200 cmd pacman -Sy
    14-Sep-2009 06:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 06:01 FILE /var/spool/cron/root USER root pid 24342 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 07:00 FILE /var/spool/cron/root USER root pid 400 cmd pacman -Sy
    14-Sep-2009 07:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 07:01 FILE /var/spool/cron/root USER root pid 547 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 08:00 FILE /var/spool/cron/root USER root pid 9408 cmd pacman -Sy
    14-Sep-2009 08:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 08:01 FILE /var/spool/cron/root USER root pid 9546 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 09:00 FILE /var/spool/cron/root USER root pid 18144 cmd pacman -Sy
    14-Sep-2009 09:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 09:01 FILE /var/spool/cron/root USER root pid 18284 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 10:00 FILE /var/spool/cron/root USER root pid 27364 cmd pacman -Sy
    14-Sep-2009 10:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 10:01 FILE /var/spool/cron/root USER root pid 27503 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 11:00 FILE /var/spool/cron/root USER root pid 3767 cmd pacman -Sy
    14-Sep-2009 11:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 11:01 FILE /var/spool/cron/root USER root pid 3908 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 12:00 FILE /var/spool/cron/root USER root pid 12373 cmd pacman -Sy
    14-Sep-2009 12:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 12:01 FILE /var/spool/cron/root USER root pid 12523 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 13:00 FILE /var/spool/cron/root USER root pid 20993 cmd pacman -Sy
    14-Sep-2009 13:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 13:01 FILE /var/spool/cron/root USER root pid 21135 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 14:00 FILE /var/spool/cron/root USER root pid 29677 cmd pacman -Sy
    14-Sep-2009 14:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 14:01 FILE /var/spool/cron/root USER root pid 29846 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 15:00 FILE /var/spool/cron/root USER root pid 6484 cmd pacman -Sy
    14-Sep-2009 15:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 15:01 FILE /var/spool/cron/root USER root pid 6642 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 16:00 FILE /var/spool/cron/root USER root pid 15169 cmd pacman -Sy
    14-Sep-2009 16:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 16:01 FILE /var/spool/cron/root USER root pid 15313 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 17:00 FILE /var/spool/cron/root USER root pid 23857 cmd pacman -Sy
    14-Sep-2009 17:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 17:01 FILE /var/spool/cron/root USER root pid 24008 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 18:00 FILE /var/spool/cron/root USER root pid 32527 cmd pacman -Sy
    14-Sep-2009 18:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 18:01 FILE /var/spool/cron/root USER root pid 32665 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 19:00 FILE /var/spool/cron/root USER root pid 9080 cmd pacman -Sy
    14-Sep-2009 19:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 19:01 FILE /var/spool/cron/root USER root pid 9224 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 20:00 FILE /var/spool/cron/root USER root pid 17660 cmd pacman -Sy
    14-Sep-2009 20:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 20:01 FILE /var/spool/cron/root USER root pid 17804 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 21:00 FILE /var/spool/cron/root USER root pid 26715 cmd pacman -Sy
    14-Sep-2009 21:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 21:01 FILE /var/spool/cron/root USER root pid 26856 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 22:00 FILE /var/spool/cron/root USER root pid 3354 cmd pacman -Sy
    14-Sep-2009 22:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 22:01 FILE /var/spool/cron/root USER root pid 3505 cmd /usr/sbin/run-cron /etc/cron.hourly
    14-Sep-2009 23:00 FILE /var/spool/cron/root USER root pid 12142 cmd pacman -Sy
    14-Sep-2009 23:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    14-Sep-2009 23:01 FILE /var/spool/cron/root USER root pid 12305 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 00:00 FILE /var/spool/cron/root USER root pid 20952 cmd pacman -Sy
    15-Sep-2009 00:00 FILE /var/spool/cron/root USER root pid 20953 cmd rsnapshot sync && rsnapshot daily
    15-Sep-2009 00:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 00:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 00:01 FILE /var/spool/cron/root USER root pid 21098 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 00:02 FILE /var/spool/cron/root USER root pid 21246 cmd /usr/sbin/run-cron /etc/cron.daily
    15-Sep-2009 00:02 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 01:00 FILE /var/spool/cron/root USER root pid 29584 cmd pacman -Sy
    15-Sep-2009 01:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 01:01 FILE /var/spool/cron/root USER root pid 29724 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 02:00 FILE /var/spool/cron/root USER root pid 5588 cmd pacman -Sy
    15-Sep-2009 02:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 02:01 FILE /var/spool/cron/root USER root pid 5731 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 03:00 FILE /var/spool/cron/root USER root pid 13934 cmd pacman -Sy
    15-Sep-2009 03:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 03:01 FILE /var/spool/cron/root USER root pid 14077 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 04:00 FILE /var/spool/cron/root USER root pid 22329 cmd pacman -Sy
    15-Sep-2009 04:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 04:01 FILE /var/spool/cron/root USER root pid 22463 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 05:00 FILE /var/spool/cron/root USER root pid 30917 cmd pacman -Sy
    15-Sep-2009 05:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 05:01 FILE /var/spool/cron/root USER root pid 31057 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 06:00 FILE /var/spool/cron/root USER root pid 7217 cmd pacman -Sy
    15-Sep-2009 06:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 06:01 FILE /var/spool/cron/root USER root pid 7369 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 07:00 FILE /var/spool/cron/root USER root pid 15704 cmd pacman -Sy
    15-Sep-2009 07:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 07:01 FILE /var/spool/cron/root USER root pid 15853 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 08:00 FILE /var/spool/cron/root USER root pid 24531 cmd pacman -Sy
    15-Sep-2009 08:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 08:01 FILE /var/spool/cron/root USER root pid 24668 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 09:00 FILE /var/spool/cron/root USER root pid 600 cmd pacman -Sy
    15-Sep-2009 09:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 09:01 FILE /var/spool/cron/root USER root pid 734 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 10:00 FILE /var/spool/cron/root USER root pid 9376 cmd pacman -Sy
    15-Sep-2009 10:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 10:01 FILE /var/spool/cron/root USER root pid 9517 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 11:00 FILE /var/spool/cron/root USER root pid 18141 cmd pacman -Sy
    15-Sep-2009 11:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 11:01 FILE /var/spool/cron/root USER root pid 18300 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 12:00 FILE /var/spool/cron/root USER root pid 27232 cmd pacman -Sy
    15-Sep-2009 12:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 12:01 FILE /var/spool/cron/root USER root pid 27381 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 13:00 FILE /var/spool/cron/root USER root pid 3772 cmd pacman -Sy
    15-Sep-2009 13:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 13:01 FILE /var/spool/cron/root USER root pid 3913 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 14:00 FILE /var/spool/cron/root USER root pid 12270 cmd pacman -Sy
    15-Sep-2009 14:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 14:01 FILE /var/spool/cron/root USER root pid 12411 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 15:00 FILE /var/spool/cron/root USER root pid 20925 cmd pacman -Sy
    15-Sep-2009 15:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 15:01 FILE /var/spool/cron/root USER root pid 21063 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 16:00 FILE /var/spool/cron/root USER root pid 29606 cmd pacman -Sy
    15-Sep-2009 16:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 16:01 FILE /var/spool/cron/root USER root pid 29750 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 17:00 FILE /var/spool/cron/root USER root pid 5996 cmd pacman -Sy
    15-Sep-2009 17:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 17:01 FILE /var/spool/cron/root USER root pid 6157 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 18:00 FILE /var/spool/cron/root USER root pid 14779 cmd pacman -Sy
    15-Sep-2009 18:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 18:01 FILE /var/spool/cron/root USER root pid 14935 cmd /usr/sbin/run-cron /etc/cron.hourly
    15-Sep-2009 19:00 FILE /var/spool/cron/root USER root pid 23745 cmd pacman -Sy
    15-Sep-2009 19:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    15-Sep-2009 19:01 FILE /var/spool/cron/root USER root pid 23927 cmd /usr/sbin/run-cron /etc/cron.hourly
    I'm not sure why it's not working, I can run rsnapshot from the command line and it creates a backup in the appropriate place .
    -SMRT

    20-Sep-2009 00:00 FILE /var/spool/cron/root USER root pid 7384 cmd /usr/bin/rsnapshot sync && /usr/bin/rsnapshot daily >> /home/brian/cronerrors 2>&1
    20-Sep-2009 00:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
    Well it didn't output it to a file .
    EDIT: Same thing happened again, however, this time it created a file but it's blank.
    Last edited by iamsmrt (2009-09-21 05:11:06)

  • Cron getting mad?

    Since a cron update 2 machines with extensive daily jobs went down by end of resources. In fact they do a virusscan some cleanup and an incremental backup every day; once a week a full backup. Virusscan of course takes time, but the daily cronjob was started every 10 minutes for some reason beyond my understanding, so at last the machine was busy until exodus. Same was true for the full backup wich filled up the process list with tons of gzip accessing the same file... All jobs worked well for long time and staring the scripts manually woks just a it should be. I do not see any problem is the crontab, but sombody else might know more:
    # man 1 crontab for acceptable formats:
    #    <minute> <hour> <day> <month> <dow> <tags and command>
    #    <@freq> <tags and command>
    # SYSTEM DAILY/WEEKLY/... FOLDERS
    @hourly         ID=sys-hourly   /usr/sbin/run-cron /etc/cron.hourly
    @daily          ID=sys-daily    /usr/sbin/run-cron /etc/cron.daily
    @weekly         ID=sys-weekly   /usr/sbin/run-cron /etc/cron.weekly
    @monthly        ID=sys-monthly  /usr/sbin/run-cron /etc/cron.monthly
    01  * * * * /usr/sbin/run-cron /etc/cron.hourly
    05 00 * * * /usr/sbin/run-cron /etc/cron.daily
    22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
    42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly
    I had to remove the scripts from the cron.daily and cron.weeky directories for getting stability back.

    I have a few problems as well; the first one is that I missed the fact that dcron was updated to a new major version, and therefore the running instance didn't recognize the crontab (@-syntax) anymore
    Secondly, I experienced the exact same problem as the topicstarter; I had to reboot my machine since my daily cron is a backup job; and this is what dcron did
    Jan 31 14:45:40 spider010 crond[29044]: no timestamp found (user root job sys-daily)
    Jan 31 15:57:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 9585 job sys-daily
    Jan 31 16:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 9841 job sys-daily
    Jan 31 16:12:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 10331 job sys-daily
    Jan 31 16:22:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 10825 job sys-daily
    Jan 31 16:32:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 11306 job sys-daily
    Jan 31 16:42:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 11784 job sys-daily
    Jan 31 16:52:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 12335 job sys-daily
    Jan 31 17:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 12956 job sys-daily
    Jan 31 17:12:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 13579 job sys-daily
    Jan 31 17:22:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 14198 job sys-daily
    Jan 31 17:32:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 14816 job sys-daily
    Jan 31 17:42:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 15434 job sys-daily
    Jan 31 17:52:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 16057 job sys-daily
    Jan 31 18:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 16676 job sys-daily
    Jan 31 18:12:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 17293 job sys-daily
    Jan 31 18:22:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 17912 job sys-daily
    Jan 31 18:32:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 18538 job sys-daily
    Jan 31 18:42:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 19154 job sys-daily
    Jan 31 18:52:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 19777 job sys-daily
    Jan 31 19:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 20394 job sys-daily
    Jan 31 19:12:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 21011 job sys-daily
    Jan 31 19:22:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 21652 job sys-daily
    Jan 31 19:32:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 22269 job sys-daily
    Jan 31 19:42:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 22891 job sys-daily
    Jan 31 19:52:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 23514 job sys-daily
    Jan 31 20:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 24130 job sys-daily
    Jan 31 20:12:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 24746 job sys-daily
    Jan 31 20:22:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 25362 job sys-daily
    Jan 31 20:32:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 25978 job sys-daily
    Jan 31 20:42:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 26595 job sys-daily
    Jan 31 20:52:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 27233 job sys-daily
    Jan 31 21:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 27850 job sys-daily
    Jan 31 21:12:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 28466 job sys-daily
    Jan 31 21:22:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 29088 job sys-daily
    Jan 31 21:32:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 29704 job sys-daily
    Jan 31 21:42:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 30330 job sys-daily
    Jan 31 21:52:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 30958 job sys-daily
    Jan 31 22:02:01 spider010 crond[29044]: FILE /var/spool/cron/root USER root PID 31616 job sys-daily
    Currently the daily jobs still run twice a day:
    Feb 1 22:10:01 spider010 crond[8218]: FILE /var/spool/cron/root USER root PID 6606 job sys-daily
    Feb 1 22:19:01 spider010 crond[8218]: FILE /var/spool/cron/root USER root PID 7721 job sys-daily
    Feb 1 22:20:44 spider010 crond[8099]: mailing cron output for user root job sys-daily
    Feb 2 00:23:43 spider010 crond[20957]: mailing cron output for user root job sys-daily
    I have followed your post on how to collect debug-info; so I will update this thread tomorrow with the results. By the way, it seems the debug-output goes to stderr, so I suggest using '&>' instead of '>>'
    Last edited by Spider.007 (2010-02-02 08:47:23)

  • What happened to cron?

    My employer recently updated our Macs to Tiger and now cron seems to be exhibiting some strange behavior. Trying to use the -u flag on the command appears to lock the program up (or at least it just sits there doing nothing.)
    I typically use Cronnix to edit my cron tasks but that doesn't appear to work anymore after the update. I can still get in there and make changes via crontab, but I'd prefer a quick and easy UI. I'm wondering what changed that's causing the weird behavior and if it's something that can be remedied. Anyone know?

    Well, it's not actually hung. it's waiting for you to put
    type type crontab information in. To exit, just tap 'Ctrl+D',
    then check the contents of that users crontab in /var/cron/tabs/<user name>
    from looking at the source code for crontab, it checks the values of environment variables, VISUAL and then EDITOR. Which are set to point to the editor of choice, vi, ed, ex....
    after setting them though I've not noticed a differnce, at least not yet.
    Andy

  • Dillons cron daemon?

    its been a couple weeks since reboot, today my system was locking up before kde started, i restarted again, and waited it out while i checked ther logs on antoer tty, it finally booted after a couple minutes delay . but i THINK this is from my misconfigured CUPS, but i cant be sure yet. i found this
    Jul 22 01:43:53 localhost kernel: [ 7.021633] sd 10:0:0:3: [sdg] Attached SCSI removable disk
    Jul 22 01:43:53 localhost kernel: [ 7.680955] r8169 0000:01:00.0: eth0: link down
    Jul 22 01:43:53 localhost kernel: [ 7.680961] r8169 0000:01:00.0: eth0: link down
    Jul 22 01:43:53 localhost dhcpcd[793]: eth0: waiting for carrier
    Jul 22 01:43:55 localhost dhcpcd[793]: eth0: carrier acquired
    Jul 22 01:43:55 localhost kernel: [ 9.341127] r8169 0000:01:00.0: eth0: link up
    Jul 22 01:43:55 localhost dhcpcd[793]: eth0: broadcasting for a lease
    Jul 22 01:43:58 localhost dhcpcd[793]: eth0: offered 192.168.137.205 from 192.168.137.1
    Jul 22 01:44:01 localhost dhcpcd[793]: eth0: acknowledged 192.168.137.205 from 192.168.137.1
    Jul 22 01:44:01 localhost dhcpcd[793]: eth0: checking for 192.168.137.205
    Jul 22 01:44:06 localhost dhcpcd[793]: eth0: leased 192.168.137.205 for 604800 seconds
    Jul 22 01:44:06 localhost dhcpcd[793]: forked to background, child pid 823
    Jul 22 01:44:06 localhost dnsmasq[853]: started, version 2.57 cachesize 150
    Jul 22 01:44:06 localhost dnsmasq[853]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP no-IDN
    Jul 22 01:44:06 localhost dnsmasq[853]: reading /etc/resolv.conf
    Jul 22 01:44:06 localhost dnsmasq[853]: using nameserver 192.168.137.1#53
    Jul 22 01:44:06 localhost dnsmasq[853]: ignoring nameserver 127.0.0.1 - local interface
    Jul 22 01:44:06 localhost dnsmasq[853]: read /etc/hosts - 5 addresses
    Jul 22 01:44:07 localhost smbd[894]: [2011/07/22 01:44:07.164595, 0] printing/print_cups.c:109(cups_connect)
    Jul 22 01:44:07 localhost smbd[894]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory
    Jul 22 01:44:07 localhost smbd[886]: [2011/07/22 01:44:07.172986, 0] printing/print_cups.c:468(cups_async_callback)
    Jul 22 01:44:07 localhost smbd[886]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
    Jul 22 01:44:08 localhost crond[987]: /usr/sbin/crond 4.5 dillon's cron daemon, started with loglevel info
    Jul 22 01:44:10 localhost proftpd[1330]: localhost.localdomain - ProFTPD 1.3.3e (maint) (built Sun Jun 26 2011 18:25:39 UTC) standalone mode STARTUP
    Jul 22 01:44:16 localhost kdm_greet[1389]: Cannot load /usr/share/apps/kdm/faces/.default.face: No such file or directory
    Jul 22 01:44:31 localhost nmbd[898]: [2011/07/22 01:44:31.482689, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
    Jul 22 01:44:31 localhost nmbd[898]: *****
    Jul 22 01:44:31 localhost nmbd[898]:
    Jul 22 01:44:31 localhost nmbd[898]: Samba name server REDTAIL is now a local master browser for workgroup WEBDEV on subnet 192.168.137.205
    Jul 22 01:44:31 localhost nmbd[898]:
    Jul 22 01:44:31 localhost nmbd[898]: *****
    Jul 22 01:44:34 localhost dbus[962]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
    Jul 22 01:44:34 localhost dbus[962]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
    Jul 22 01:44:34 localhost polkitd[1475]: started daemon version 0.101 using authority implementation `local' version `0.101'
    Jul 22 01:44:34 localhost dbus[962]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
    Jul 22 01:44:34 localhost dbus[962]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
    Jul 22 01:44:38 localhost dbus[962]: [system] Activating service name='org.freedesktop.UPower' (using servicehelper)
    Jul 22 01:44:38 localhost dbus[962]: [system] Successfully activated service 'org.freedesktop.UPower'
    Jul 22 01:44:38 localhost dbus[962]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
    Jul 22 01:44:38 localhost dbus[962]: [system] Successfully activated service 'org.freedesktop.UDisks'
    Jul 22 01:44:39 localhost dbus[962]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper)
    Jul 22 01:44:39 localhost dbus[962]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
    Jul 22 01:44:39 localhost kernel: [ 54.121868] EXT4-fs (sda3): re-mounted. Opts: commit=0
    Jul 22 01:44:40 localhost kernel: [ 54.418295] EXT4-fs (sda4): re-mounted. Opts: commit=0
    Jul 22 01:45:07 localhost dbus[962]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
    Jul 22 01:46:44 localhost kdm[1179]: X server for display :0 terminated unexpectedly
    Jul 22 01:46:46 localhost kdm_greet[1747]: Cannot load /usr/share/apps/kdm/faces/.default.face: No such file or directory
    Jul 22 01:46:51 localhost dbus[962]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper)
    Jul 22 01:46:51 localhost dbus[962]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
    Jul 22 01:47:00 localhost kdm[1179]: X server for display :0 terminated unexpectedly
    Jul 22 01:47:02 localhost kdm_greet[1895]: Cannot load /usr/share/apps/kdm/faces/.default.face: No such file or directory
    Jul 22 01:47:07 localhost smbd[1908]: [2011/07/22 01:47:07.667503, 0] printing/print_cups.c:109(cups_connect)
    Jul 22 01:47:07 localhost smbd[1908]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory
    Jul 22 01:47:07 localhost smbd[895]: [2011/07/22 01:47:07.667619, 0] printing/print_cups.c:468(cups_async_callback)
    Jul 22 01:47:07 localhost smbd[895]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
    Jul 22 01:47:07 localhost smbd[895]: [2011/07/22 01:47:07.667834, 0] smbd/server.c:281(remove_child_pid)
    Jul 22 01:47:07 localhost smbd[895]: Could not find child 1908 -- ignoring
    Jul 22 01:47:12 localhost dbus[962]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper)
    Jul 22 01:47:12 localhost dbus[962]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
    Jul 22 01:47:16 localhost dbus[962]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
    Jul 22 01:49:06 localhost dhcpcd[823]: eth0: renewing lease of 192.168.137.205
    Jul 22 01:49:06 localhost dhcpcd[823]: eth0: acknowledged 192.168.137.205 from 192.168.137.1
    Jul 22 01:49:06 localhost dhcpcd[823]: eth0: leased 192.168.137.205 for 604800 seconds
    Jul 22 01:49:09 localhost dnsmasq[853]: reading /etc/resolv.conf
    Jul 22 01:49:09 localhost dnsmasq[853]: using nameserver 192.168.137.1#53
    Jul 22 01:49:09 localhost dnsmasq[853]: ignoring nameserver 127.0.0.1 - local interface
    Jul 22 01:53:40 localhost dbus[962]: [system] Activating service name='org.kde.kcontrol.kcmclock' (using servicehelper)
    Jul 22 01:53:40 localhost dbus[962]: [system] Successfully activated service 'org.kde.kcontrol.kcmclock'
    Jul 22 08:53:37 localhost smbd[2563]: [2011/07/22 08:53:37.266044, 0] printing/print_cups.c:109(cups_connect)
    Jul 22 08:53:37 localhost smbd[2563]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory
    Jul 22 08:53:37 localhost -- MARK --
    Jul 22 08:53:37 localhost smbd[895]: [2011/07/22 08:53:37.266231, 0] printing/print_cups.c:468(cups_async_callback)
    Jul 22 08:53:37 localhost smbd[895]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
    Jul 22 08:53:37 localhost smbd[895]: [2011/07/22 08:53:37.266793, 0] smbd/server.c:281(remove_child_pid)
    Jul 22 08:53:37 localhost smbd[895]: Could not find child 2563 -- ignoring
    Jul 22 08:53:37 localhost smbd[2566]: [2011/07/22 08:53:37.272189, 0] printing/print_cups.c:109(cups_connect)
    Jul 22 08:53:37 localhost smbd[2566]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory
    Jul 22 08:53:37 localhost smbd[2084]: [2011/07/22 08:53:37.327620, 0] printing/print_cups.c:468(cups_async_callback)
    Jul 22 08:53:37 localhost smbd[2084]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
    Jul 22 08:53:37 localhost smbd[2567]: [2011/07/22 08:53:37.873786, 0] printing/print_cups.c:109(cups_connect)
    Jul 22 08:53:37 localhost smbd[2567]: Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory
    Jul 22 08:53:37 localhost smbd[2087]: [2011/07/22 08:53:37.873927, 0] printing/print_cups.c:468(cups_async_callback)
    Jul 22 08:53:37 localhost smbd[2087]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
    Jul 22 08:53:44 localhost dbus[962]: [system] Activating service name='org.kde.kcontrol.kcmclock' (using servicehelper)
    Jul 22 08:53:44 localhost dbus[962]: [system] Successfully activated service 'org.kde.kcontrol.kcmclock'
    Jul 22 08:53:48 localhost crond[987]: time disparity of 420 minutes detected
    Jul 22 08:53:52 localhost dhcpcd[823]: eth0: renewing lease of 192.168.137.205
    Jul 22 08:53:52 localhost dhcpcd[823]: eth0: acknowledged 192.168.137.205 from 192.168.137.1
    Jul 22 08:53:52 localhost dhcpcd[823]: eth0: leased 192.168.137.205 for 604800 seconds
    Jul 22 08:54:00 localhost crond[987]: FILE /var/spool/cron/root USER root PID 2598 job sys-hourly
    Jul 22 08:54:00 localhost crond[2600]: mailing cron output for user root job sys-hourly
    Jul 22 08:54:00 localhost crond[2600]: unable to exec /usr/sbin/sendmail: cron output for user root job sys-hourly to /dev/null
    note the delays  after the time Jul 22 01:43:53, which is after the system booted and maybe when i logged in to kde, the rest of the stuff was causing the hang. i think from that time, until 8:54 was the acutual delay when it finally loaded the desktop. thats a 11 minute hang, but i might be mistaken, i think it only took a few minutes, as opposed to 11 minutes. 
    but somethign stood out after looking at my everything log, i found the following,
    are there cron jobs automatically setup on teh install, or did i get hacked or something?
    localhost crond[987]: /usr/sbin/crond 4.5 dillon's cron daemon, started with loglevel info
    and later down the line, sendmail?? thats suspicious,
    Jul 22 08:54:00 localhost crond[987]: FILE /var/spool/cron/root USER root PID 2598 job sys-hourly
    Jul 22 08:54:00 localhost crond[2600]: mailing cron output for user root job sys-hourly
    Jul 22 08:54:00 localhost crond[2600]: unable to exec /usr/sbin/sendmail: cron output for user root job sys-hourly to /dev/null
    i found this article after searching this and i found another user getting freezes with this "dillon's cron daemon" https://bbs.archlinux.org/viewtopic.php?id=119570
    first of all, i must note the possible obvious to those who might know what this is, im not dillon, and i have no idea what this is.   so it stands out as someone who hacked, and set up a sendmail daemon on my system, but after looking, sendmail doesnt exist, atleast in usr/sbin anyway. 
    is this cron job part of a normal part of the arch install?  if so, then does anybody see what else might have caused the hang?  CUPS, network dhcp?
    Last edited by wolfdogg (2011-07-22 16:20:05)

    wolfdogg wrote:
    litemotiv wrote:
    Yes the cron jobs are normal, they are used to update your logs, your manuals database etc.
    When was your last pacman -Syu by the way? Dillon's cron (dcron) was replaced by cronie a few months ago.
    thats funny, i updated just last week, and this was my first reboot i think.  i had too many jobs open to reboot then.  i will have to look into the replacement, maybe i just need to change the line in my daemon list in /etc/rc.conf?   im going to check if cronie starts automatically or if i need to replace dcron in my daemons list.
    You will first need to install cronie :-)
    [karol@black ~]$ pacman -S cronie
    resolving dependencies...
    looking for inter-conflicts...
    :: cronie and dcron are in conflict (cron). Remove dcron? [y/N] N
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: cronie and dcron are in conflict (cron)
    http://mailman.archlinux.org/pipermail/ … 19661.html
    Second cronie will in no way `replaces=('dcron')` but will most likely
    `conflicts=('dcron')`. Therefore while it will be impossible to install both
    on the same system having cronie in [core] will in no way force existing
    users to switch.
    https://wiki.archlinux.org/index.php?ti … did=148455
    The daemon name ''crond'' is used by at least two packages, cronie and dcron.
    Last edited by karol (2011-07-22 16:39:56)

  • Exp error in cron

    dear friends.
    before i put that post i read another and i dont have any solution.
    That is my crontab:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=oracle
    HOME=/home/oracle
    33 15 * * 1-5 /mnt/hda1/backupbd/hot_backup/test/1test.sh
    ...and my 1test.sh is :
    # /bin/bash
    # exporting user schema
    export ORACLE_SID=ORAAPOLO
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export PATH=$PATH:$ORACLE_HOME/bin
    dt=`date +%Y%m%d`
    # creo directorio
    mkdir /mnt/hda1/backupbd/hot_backup/test/$dt
    cd /mnt/hda1/backupbd/hot_backup/test/$dt
    .$ORACLE_HOME/bin/exp user/pwd owner=hr file=exp_hr_$dt.dmp log=exp_hr_$dt.log statistics=none
    my cron functions partially, 'cause it create directory, but it is the message in oracle mail:
    & 1
    Message 1:
    From [email protected] Mon Jul 9 15:33:02 2007
    Date: Mon, 9 Jul 2007 15:33:01 -0500
    From: [email protected] (Cron Daemon)
    To: [email protected]
    Subject: Cron <oracle@oraprueba> /mnt/hda1/backupbd/hot_backup/test/1test.sh
    X-Cron-Env: <SHELL=/bin/bash>
    X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
    X-Cron-Env: <MAILTO=oracle>
    X-Cron-Env: <HOME=/home/oracle>
    X-Cron-Env: <LOGNAME=oracle>
    X-Cron-Env: <USER=oracle>
    /mnt/hda1/backupbd/hot_backup/test/1test.sh: line 12: ./u01/app/oracle/product/10.2.0/db_1/bin/exp: No such file or directory
    /mnt/hda1/backupbd/hot_backup/test
    Please, help me, i put the variables in my env but it is not function....
    thanks in advance...
    chijar

    Hi Chijar,
    Crontabs are trickey to de-bug, and most problems that I see are from not specifying the full path names to executables. . . .
    Unlike running a script from a user ID, your profile is not executed from a cron. . .
    As to the "dot", that says "my current directory", and there is no "here" from batch.
    Otherwise, it looks fine to me . . .

  • Add users manually to turnkey installation

    Hi,
    Just installed the turnkey Adobe WF. How do i add users manually? Is the existence of an AD/LDAP instance to backup a domain a must?
    If not how do I add users to the default domain that comes setup with the turnkey installation.
    If LDAP is the only I understand why that is important in enterprise scenarios but there should have been a simple way to add users for testing purposes.
    thx,
    CR

    Only LDAP user is going to work out ..
    You can get only one default Administrator user..

  • Seti at home left in cron

    Hi,
    I recently transferred my files from my old iMac DV to my new MacBook, but unfortunately I think I've tranferred some of my problems as well.
    When I opened Terminal for the first time on my new MacBook, it said I had 100 new messages. I checked to see what they were, and they are all error messages from the cron looking for the application Seti@home which I had installed on my iMac several years ago. Does anyone know how I would stop the automatic looking for Seti@home from happening every hour? Here's the text of one of the messages:
    Message 9:
    From [email protected] Fri Jun 23 15:00:01 2006
    X-Original-To: fosterc
    Delivered-To: [email protected]
    From: [email protected] (Cron Daemon)
    To: [email protected]
    Subject: Cron <fosterc@localhost> cd /Applications/setiathome-darwin/ ; ./setiathome -nice 19 > /dev/null 2> /dev/null
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=fosterc>
    X-Cron-Env: <USER=fosterc>
    X-Cron-Env: <HOME=/Users/fosterc>
    Date: Fri, 23 Jun 2006 15:00:00 -0400 (EDT)
    /bin/sh: line 1: cd: /Applications/setiathome-darwin/: No such file or directory

    OK… if you open Terminal and type…
    crontab -l
    … and a whole pile of seti@home stuff comes up, and ONLY this stuff then if you type…
    crontab -r
    … and then restart your computer you should then be right. If on the other hand there is more than just set@home entries then you're going to need to be able to handle an command line visual text editor and use the…
    crontab -e
    … command to do an edit the cron file rather than a deletion.
    I am assuming the seti@home stuff was installed into your user's cron file rather than the system cron file. If this doesn't work I'll go through the system edit which is somewhat more complicated as it won't be a simple deletion of the file.
    As a side note… this is an extremely good example of why I would never use the Migration Assistant.

  • SOLVED sorta-Rsync cron/crontab 2 Processes?

    I recently tried to setup cron to run rsync my /home to my old harddrive. I made a script in /etc/cron.daily as follows:
    18 0 * * * rsync -ar --delete /home/comhack/Videos /home/comhack/Music /mnt/backup/Backup &> /dev/null
    Well after restarting cron it would not work. So I used crontab to add the cron job:
    bash-3.2# crontab -l
    #!/bin/bash
    18 0 * * * rsync -ar --delete /home/comhack/Videos /home/comhack/Music /mnt/backup/Backup &> /dev/null
    Well when I do that it shows 2 processes in top:
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    8343 root 20 0 32920 1716 400 R 33 0.0 0:20.49 rsync
    8341 root 20 0 30032 2172 748 S 27 0.1 0:15.89 rsync
    Also, /var/log/crond shows only one process started:
    08-Apr-2009 00:18 FILE /var/spool/cron/root USER root pid 8340 cmd rsync -ar --delete /home/comhack/Videos /home/comhack/Music /mnt/backup/Backup &> /dev/null
    Any ideals?
    Last edited by securitybreach (2009-06-14 10:42:10)

    I take it that worked? If so, can you edit your original post and mark as solved please to help other in the future searching for similar problems?
    Last edited by fukawi2 (2009-04-08 22:38:46)

  • CRON Not Execuding Scripts

    Hi. I have several scripts in /etc/cron.hourly/ For example my update_website.sh
    #!/bin/bash
    rsync -e ssh -avz /home/http/content --exclude "*bak" --exclude "*~" [email protected]:/usr/users/myuser/WWW
    The script executes nicely on its own, but never gets executed via cron, as inteded. I have
    $ ls -l
    -rwxr-xr-x 1 root root 590 2009-03-21 14:57 /etc/cron.hourly/upload_website.sh
    and
    $ sudo crontab -l
    Password:
    # DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
    # <minute> <hour> <day> <month> <dow> <command>
    01 * * * * /usr/sbin/run-cron /etc/cron.hourly
    02 00 * * * /usr/sbin/run-cron /etc/cron.daily
    22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
    42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly
    Any ideas?

    Just a bunch of sendmail errors (I really should set up mail to catch all these messages...)
    $ cat /var/log/crond
    22-Mar-2009 00:04 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 00:22 FILE /var/spool/cron/root USER root pid 12775 cmd /usr/sbin/run-cron /etc/cron.weekly
    22-Mar-2009 11:22 /usr/sbin/crond V3.2 dillon, started
    22-Mar-2009 12:01 FILE /var/spool/cron/root USER root pid 3447 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 12:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 13:01 FILE /var/spool/cron/root USER root pid 7290 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 13:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 14:01 FILE /var/spool/cron/root USER root pid 8641 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 14:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 15:01 FILE /var/spool/cron/root USER root pid 9946 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 15:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 16:01 FILE /var/spool/cron/root USER root pid 10501 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 16:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 17:01 FILE /var/spool/cron/root USER root pid 11820 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 17:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 18:01 FILE /var/spool/cron/root USER root pid 12861 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 18:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 19:01 FILE /var/spool/cron/root USER root pid 14935 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 19:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 20:01 FILE /var/spool/cron/root USER root pid 20317 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 20:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 21:01 FILE /var/spool/cron/root USER root pid 23332 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 21:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 22:01 FILE /var/spool/cron/root USER root pid 23348 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 22:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null22-Mar-2009 23:01 FILE /var/spool/cron/root USER root pid 24723 cmd /usr/sbin/run-cron /etc/cron.hourly
    22-Mar-2009 23:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null23-Mar-2009 09:10 /usr/sbin/crond V3.2 dillon, started
    23-Mar-2009 22:26 /usr/sbin/crond V3.2 dillon, started
    23-Mar-2009 23:01 FILE /var/spool/cron/root USER root pid 20428 cmd /usr/sbin/run-cron /etc/cron.hourly
    23-Mar-2009 23:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null24-Mar-2009 00:01 FILE /var/spool/cron/root USER root pid 24315 cmd /usr/sbin/run-cron /etc/cron.hourly
    24-Mar-2009 00:01 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null24-Mar-2009 00:02 FILE /var/spool/cron/root USER root pid 26765 cmd /usr/sbin/run-cron /etc/cron.daily
    24-Mar-2009 00:04 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null

  • OSX.RSPlug.gen.cron

    I have read the articles on the apple discussions and have installed VirusBarrier and tried to search for a DNSChanger by using DNSChanger scan tool from macscan. The virusbarrier software detects it but it cannot remove it, the macscan software cannot even detect it. This is causing my email to send out a lot of spam to unknown users. Other than that my computer is running fine.

    Hi NITIN, and a warm welcome to the forums!
    Open Terminal and enter this...
    ps aux | grep crond
    What do you get?
    CRON jibs are normally stored in the /etc directory or /var/spool/cron/crontabs/<user>
    In case it's invisible...
    show hidden files in OSX Finder
    Open the terminal and type or copy/paste:
    defaults write com.apple.finder AppleShowAllFiles -bool true
    Reverting to the default of NOT showing hidden files:
    defaults write com.apple.finder AppleShowAllFiles -bool false
    Restart or Force Quit Finder required to take effect.
    I'd get EasyFind...
    http://www.versiontracker.com/dyn/moreinfo/macosx/8707
    Then search for .pspug showing hidden files & folders.

  • Cannot get amarok to play with cron

    I used to have this in Ubuntu, I use gnome-schedule GUI for cron and have some other cronjobs working fine. But amarok will not play (I like to use it as a wake-up alarm). I have:
    15 7 * * * export DISPLAY=:0 && amarok -t
    But it doesn't work. I've tried "amarok -t" in quotes, no go. When I hit amarok -t in a terminal it play/pauses fine.

    This is from my testing the cronjob last night, from /var/log/crond:
    04-Jan-2008 02:01 FILE /var/spool/cron/root USER root pid 32494 cmd /usr/sbin/run-cron /etc/cron.hourly
    04-Jan-2008 02:02 FILE /var/spool/cron/bobby USER bobby pid 32635 cmd export DISPLAY=:0 && amarok -t >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:03 FILE /var/spool/cron/bobby USER bobby pid 309 cmd amarok -t >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:04 FILE /var/spool/cron/bobby USER bobby pid 461 cmd export DISPLAY=:0 & amarok -t >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:05 FILE /var/spool/cron/bobby USER bobby pid 647 cmd export DISPLAY=:0 && "amarok -t" >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:08 FILE /var/spool/cron/bobby USER bobby pid 1087 cmd export DISPLAY=:0 && amarok -p >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:12 FILE /var/spool/cron/bobby USER bobby pid 1612 cmd export DISPLAY=:0 && 'amarok -t' >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:13 FILE /var/spool/cron/bobby USER bobby pid 1749 cmd export DISPLAY=:0 && wxvlc >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:14 FILE /var/spool/cron/bobby USER bobby pid 1879 cmd export DISPLAY=:0 && amarokapp -t >/dev/null 2>&1 #JOB_ID_2
    04-Jan-2008 02:16 FILE /var/spool/cron/bobby USER bobby pid 2155 cmd export DISPLAY=:0 && /opt/kde/bin/amarok -t >/dev/null 2>&1 #JOB_ID_2
    I don't understand how it can be a permission/user issue, as I tested cron with other apps like vlc, xine, openoffice, etc. and they all run as scheduled ??

Maybe you are looking for

  • IN operator in Where Clause

    Hi Experts, I have been facing a problem in passing multiple values to the where clause in select query. I have 15 values in which i need to check in where condition. Ex:  SELECT AMATNR ASPART            INTO TABLE IT_DIVISION            FROM MARA AS

  • Browser plug-in & Java components

    I post my topic here as I realized the JavaBean forum wasn't the right place. Sorry for the double post. As part of an application, I have developped a specific component/javabean that displays some data that may be stored in a file (*.ppp). I would

  • Pointless change to Safari 6.1 pop-up menu for links

    Can somebody please put the adults back in charge of OS development at Apple? This morning I was prompted to install the latest OS update, which includes a new version of Safari (6.1). Almost immediately I noticed this change to the order of items in

  • No file association in konqueror on fluxbox

    hi. on kde konqueror works fine but on fluxbox when i want to open some file I always heve to "Open With..." and write the app i want to use;/ also when i check "remember application association for this type of file" i doesnt' seve it ;/ any ideas??

  • File error:  Access Denied in FCP when trying to save a project.

    Can anyone help?  I'm trying to save a project in FCP, however I keep getting an error stating access denied.  Thanks