Re: crontab-smb probs

From: Tulio Guimarães da Silva (tuliogs_at_pgt.mpt.gov.br)
Date: 10/20/05

  • Next message: Shane Ambler: "Re: crontab prob"
    Date: Thu, 20 Oct 2005 11:04:33 -0200
    To: freebsd-performance@freebsd.org
    
    
    

    Hello,
       from the error message originator - env(1) -, I´d say there´s some
    environment variable missing at run. Crond does not execute ~/.profile
    and similars, which is normally where these variables are defined, and
    then they must be set by the shellscript itself.
      In short, mrtg is being called from "run.sh", therefore you´ll have to
    specify its path, and probably some other variables, inside this script.
    That must work.
      Or, in a better way, call it from the system´s crontab, as described
    in the cron section of the Handbook. It´s worth a look. ;)
      Good luck, :)

    Túlio G. da Silva

    P.S.: I (too) guess this is not the appropriate list to look for help on
    this subject; "freebsd-questions" should bring you better results, if
    this one fails. ;) Or else,

    eirini wrote:

    >That's exactly what I have done! I suspect that there
    >is on another crontab file (?) a reference to an mrtg
    >folder cause now I have moved my run.sh to another
    >folder and my crontab line is like this:
    >
    >*/5 * * * * /usr/local/www/run.sh
    >
    >no mrtg anywhere :) :)
    >
    >but still get this mail!!! :
    >
    >Message 1:
    >>From root@BSD.BSD.org Thu Oct 20 14:30:01 2005
    >Date: Thu, 20 Oct 2005 14:30:00 +0300 (EEST)
    >From: root@BSD.BSD.org (Cron Daemon)
    >To: root@BSD.BSD.org
    >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
    >------------
    >Thank you
    >Spen
    >
    >
    >
    >__________________________________
    >Yahoo! Music Unlimited
    >Access over 1 million songs. Try it free.
    >http://music.yahoo.com/unlimited/
    >_______________________________________________
    >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"
    >
    >
    >
    >

    
    

    _______________________________________________
    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: Shane Ambler: "Re: crontab prob"

    Relevant Pages

    • Re: MRTG
      ... Forgot to mention that crontab -e shows no listing for root. ... Subject: MRTG ... >> On my local web server, ... >> help files for mrtg dont have much information. ...
      (RedHat)
    • Re: crontab help
      ... >>I'm new to Fedora and would like a little help with crontab. ... >>to follow the documentation for crontab but can't seem to get it right. ... This is ahow I run MRTG. ... Steve Cowles ...
      (Fedora)
    • Running mrtg on FreeBSD
      ... it to the MRTG list.... ... I don't want MRTG run as root, however creating a crontab in /var/cron for ... the mrtg user yeilds errors every time it tries to run. ... If I run the same cron job as root, ...
      (freebsd-questions)
    • Re: crontab-smb probs
      ... you don't define user who runs that crontab ... Thank you dear friend. ... I did remove "root" and say crontab -e as root but ... cannot find mrtg directory...BUT there is one.. ...
      (freebsd-performance)
    • Re: How To Copy A Folder Once A Day
      ... |I'm pretty sure I would use cron for this, but how can I copy an entire ... |folder (including sub-folders) once a day? ... man crontab ...
      (alt.os.linux.suse)