another crontab issue - SUN

This is a discussion on another crontab issue - SUN ; hello, I'm having some strange issues with crontab files on Solaris 10. I'm adding a new cron job as shown below: 12 12 * * * /home/web/scripts/dump.pl >> /dev/null 2>&1 and cron refuses to execute it. it doesn't give me ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: another crontab issue

  1. another crontab issue

    hello,

    I'm having some strange issues with crontab files on Solaris 10. I'm
    adding a new cron job as shown below:

    12 12 * * * /home/web/scripts/dump.pl >> /dev/null 2>&1

    and cron refuses to execute it. it doesn't give me any error, the
    script itself doesn't give any errors as well (I've tried to execute
    it with /home/web/scripts/dump.pl >> /home/web/error.log 2>&1, but it
    didn't even create any error file), cron doesn't send me any emails
    either. on another sun machine the same script works perfectly fine.

    does anyone have any idea what's wrong?

  2. Re: another crontab issue

    king.pest wrote:
    > I'm having some strange issues with crontab files on Solaris 10. I'm
    > adding a new cron job as shown below:
    >
    > 12 12 * * * /home/web/scripts/dump.pl >> /dev/null 2>&1


    You did add the cron job with crontab -e, and not by editing the file in
    /var/spool/cron/crontabs, right?

    Have you checked /var/cron/log, to see whether the script is executed?

    mp.
    --
    Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
    | http://www.par.univie.ac.at/solaris/pca/
    Patch Check Advanced | Analyze, download and install patches for Sun
    Solaris

  3. Re: another crontab issue

    On 14 Gru, 14:16, Martin Paul wrote:
    > You did add the cron job with crontab -e, and not by editing the file in
    > /var/spool/cron/crontabs, right?


    right, I did.

    > Have you checked /var/cron/log, to see whether the script is executed?
    >


    no, I haven't. I don't have a root account on this machine, and I
    can't read files in /var/cron/log

  4. Re: another crontab issue

    king.pest wrote:
    > no, I haven't. I don't have a root account on this machine, and I
    > can't read files in /var/cron/log


    Too bad. Is your account name listed in /etc/cron.d/cron.deny ?

    Have you tried a simple cron job like "/usr/bin/touch /tmp/123" ?

    mp.
    --
    Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
    | http://www.par.univie.ac.at/solaris/pca/
    Patch Check Advanced | Analyze, download and install patches for Sun
    Solaris

  5. Re: another crontab issue

    On 14 Gru, 15:27, Martin Paul wrote:
    >
    > Too bad. Is your account name listed in /etc/cron.d/cron.deny ?


    no, it isn't.

    > Have you tried a simple cron job like "/usr/bin/touch /tmp/123" ?


    yes, I have. I've just created this cron job, and it neither created a
    file nor produced an error.


  6. Re: another crontab issue

    ok, I've just tried the easiest solution: I've called the root and
    asked him to restart cron. it works perfectly now.

    thanks for your help Martin anyway

    best regards;

  7. Re: another crontab issue

    king.pest wrote:
    > yes, I have. I've just created this cron job, and it neither created a
    > file nor produced an error.


    If you haven't tried it with this one simple job alone in the crontab,
    that's one more thing to try. Or show us output of "crontab -l".

    /usr/sbin/cron *is* running on this machine, right ?

    If possible, ask the sysadmin to look at /var/cron/log (or at least, see
    if the timestamp is updated when your cron job should run) or truss the
    cron process. Otherwise, I'm out of ideas about debugging this as a
    regular user.

    mp.
    --
    Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
    | http://www.par.univie.ac.at/solaris/pca/
    Patch Check Advanced | Analyze, download and install patches for Sun
    Solaris

+ Reply to Thread