Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2016 00:11:23 +0000 (UTC)
From:      gahn <ipfreak@yahoo.com>
To:        Freebsd General Questions <freebsd-questions@freebsd.org>
Subject:   crontab is not working
Message-ID:  <430270708.3017333.1457136683088.JavaMail.yahoo@mail.yahoo.com>
References:  <430270708.3017333.1457136683088.JavaMail.yahoo.ref@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hi:
i am trying to test a crontab job for snmpwalk but it is not working:
here is crontab:
*/1 =C2=A0=C2=A0 *=C2=A0=C2=A0=C2=A0 *=C2=A0=C2=A0=C2=A0 *=C2=A0=C2=A0=C2=
=A0 *=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0 /root/snmpwalk.sh

for the script, it is very simple:
#!/usr/local/bin/bash

/usr/local/bin/snmpwalk -v 2c -c public 100.10.10.10
from the log, i can see this

Mar=C2=A0 4 15:22:00 snails /usr/sbin/cron[88515]: (operator) CMD (/usr/lib=
exec/save-entropy)
Mar=C2=A0 4 15:22:00 snails /usr/sbin/cron[88516]: (root) CMD (root^I/root/=
snmpwalk.sh)
Mar=C2=A0 4 15:23:00 snails /usr/sbin/cron[88531]: (root) CMD (root^I/root/=
snmpwalk.sh)
Mar=C2=A0 4 15:24:00 snails /usr/sbin/cron[88534]: (root) CMD (root^I/root/=
snmpwalk.sh)
thanks.

_dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?430270708.3017333.1457136683088.JavaMail.yahoo>