[mrtg] I still couldn't execute mrtg using cron.
Wm. Josiah Erikson
wjerikson at hampshire.edu
Fri Jul 15 05:07:19 CEST 2016
Put it in /etc/crontab not your own crontab, so it's running as root.
-Josiah
On 7/14/16, 3:53 PM, McDonald, Daniel (Dan) wrote:
>
> More than likely, you are running from the command line with a
> different user than cron, so the cron user doesn't have the same
> permissions as the logged in user.
>
>
>
> *From: *mrtg
> <mrtg-bounces+dan.mcdonald=austinenergy.com at lists.oetiker.ch> on
> behalf of thomaz portella <thomazp at gmail.com>
> *Date: *Thursday, July 14, 2016 at 12:40 PM
> *To: *"mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
> *Subject: *[mrtg] I still couldn't execute mrtg using cron.
>
>
>
> I still couldn't executing mrtg using machine cron.
> I supposed cron wasn't running, but I put a simple script and worked.
> I didn't put the mrtg command itself, but instead I made a script with
> the command, changed the file to be executable, and put the name of
> this file in the crontab.
> But doesn't run .
> To ensure the script was right, tiping by cmd line, it works.
> Anyone knows what is wrong?
> Thanks
>
>
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
--
-----
Wm. Josiah Erikson
Head, Systems and Networking
Hampshire College
Amherst, MA 01002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160714/4bd84a90/attachment.html>
More information about the mrtg
mailing list