[Bro] Errors with broctl cron
dnthayer at illinois.edu
Mon Mar 10 10:13:01 PDT 2014
On 03/10/2014 10:39 AM, C. L. Martinez wrote:
> On Mon, Mar 10, 2014 at 3:34 PM, Justin Azoff <JAzoff at albany.edu> wrote:
>> On Mon, Mar 10, 2014 at 03:16:09PM +0000, C. L. Martinez wrote:
>>> Here it is:
>>> root at testbro:~ # /nsm/bro/share/broctl/scripts/local-interfaces
>>> Nothing strange in my opinion ... In ode.cfg I use IP 172.17.24.1 to
>>> connect to other workers ...
>> Yep, that's what it is supposed to do.. bro tries to fix the path in
>> that script:
>> export PATH=$PATH:/sbin:/usr/sbin
>> so ifconfig can be found, but I wonder if it is not finding sed on your
>> system. Can you double check what your PATH is in the shell vs. what
>> it is for cron jobs?
> PATH in cron:
> crontab entry is:
> 59 * * * * root /nsm/bro/bin/broctl cron
> In my shell:
> sed: /usr/bin/sed /usr/share/man/man1/sed.1.gz /usr/src/usr.bin/sed
> ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
> Uhmmm... I don't see where is the problem ...
I think the problem is that "bash" (probably located in /usr/local/bin)
is not found when broctl runs in a cron job. Probably the easiest fix
is to create a symlink to bash in either /bin or /usr/bin.
You might also need to make a symlink to python (broctl
requires both bash and python).
More information about the Bro