Re: crontab prob

From: Shane Ambler (Shane_at_007Marketing.com)
Date: 10/20/05

  • Next message: spen: "RE: crontab prob"
    Date: Thu, 20 Oct 2005 23:21:51 +0930
    To: FreeBSD Mailing Lists <freebsd-performance@freebsd.org>, eirini <renas13@yahoo.com>
    
    

    On 20/10/2005 22:09, "eirini" <renas13@yahoo.com> wrote:

    > Subject: Cron <root@BSD> /usr/local/www/run.sh
    > 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>
    >
    > env: mrtg: No such file or directory

    > # cat /usr/local/www/run.sh
    > env LANG=C mrtg /usr/local/www/mrtg/eg2/eg2.cfg

    I pick the problem to be this line ^ above.
    Try changing the mrtg (the first one after LANG=C) in the run.sh to the full
    path - from the cron email you got it is not located within PATH which is
    why it can't find it.
    If you removed the mrtg folder you may need to change the path to the cfg
    file as well.

    The other option is put mrtg in /usr/bin/

    -- 
    Shane Ambler
    Sales Department
    007Marketing.com
    Shane@007Marketing.com
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"
    

  • Next message: spen: "RE: crontab prob"

    Relevant Pages

    • RE: Alternative for Exchange
      ... On Behalf Of Mike Koponick ... Subject: Alternative for Exchange ... Subject: SNMP + MRTG... ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • RE: Alternative for Exchange
      ... Subject: Alternative for Exchange ... On Behalf Of Mike Koponick ... Subject: SNMP + MRTG... ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • RE: Tracking server bandwidth usage and other stats
      ... MRTG is pretty good. ... Tracking server bandwidth usage and other stats ... To be able to track key applications specifically - how much load ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: Cron job without emailing errors to root?
      ... | I run MRTG for many boxes on my network at five minute intervals, ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... To unsubscribe, ...
      (freebsd-questions)
    • Re: freebsd port for MRTG
      ... >> Is there a port for MRTG? ... >> for FREEBSD only. ... > Mantas Smelevi$Bhi(Bus ... To unsubscribe, ...
      (freebsd-questions)