Results 1 to 10 of 48

Thread: cron job not running

Hybrid View

  1. #1
    Ski K2 NNTP User

    Default cron job not running


    11.1 64 bit

    Can anyone tell me why this cron job is not running?

    The script runs fine from the users shell prompt.

    crontab -e

    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie
    Exp $)
    1 16 * * * sh /home/pathp/Navicat/start_navicat /schedule "Rack 5 to
    Local All"

    ???


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  2. #2
    ken yap NNTP User

    Default Re: cron job not running


    If you had any commands in the shell script "schedule" that depended on
    your $PATH or $HOME, they would fail to run.

    You should have received email containing any output from the job. Have
    you looked for the email?


    --
    ken_yap
    ------------------------------------------------------------------------
    ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  3. #3
    Ski K2 NNTP User

    Default Re: cron job not running


    I have not looked for email.

    I'll do that.

    Thanks


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  4. #4
    ab@novell.com NNTP User

    Default Re: cron job not running

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Agreed.... start by changing 'sh' to '/bin/sh' (or '/bin/bash') just to
    be sure, and then also check for that e-mail. The /var/log/messages
    file should also have output from when it was attempted (if it was
    attempted). Set to '* * * * *' for testing, or something that runs
    more-often than once per day.

    Good luck.





    ken yap wrote:
    > If you had any commands in the shell script "schedule" that depended on
    > your $PATH or $HOME, they would fail to run.
    >
    > You should have received email containing any output from the job. Have
    > you looked for the email?
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFJbfK73s42bA80+9kRAkqbAJ9DaUFxKtPMXjQoCyox5gY3zYXE0ACfTOz4
    B2LM3l/rmE4buMlGvoFnFGg=
    =z5zh
    -----END PGP SIGNATURE-----

  5. #5
    Ski K2 NNTP User

    Default Re: cron job not running


    ken_yap;1927067 Wrote:
    > If you had any commands in the shell script "schedule" that depended on
    > your $PATH or $HOME, they would fail to run.
    >
    > You should have received email containing any output from the job. Have
    > you looked for the email?


    If, during my Suse install, I ticked the box to receive system mail
    where would I find it?

    I don't have a /var/log/mail.

    The script does use $HOME and other system variables but if the script
    runs OK at this users shell then why would the users crontab not run it
    OK?


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


Posting Permissions

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