From owner-freebsd-questions@FreeBSD.ORG Mon Mar 31 21:55:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A93A37B401 for ; Mon, 31 Mar 2003 21:55:19 -0800 (PST) Received: from hotmail.com (f13.pav2.hotmail.com [64.4.37.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 212B743FBF for ; Mon, 31 Mar 2003 21:55:19 -0800 (PST) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 31 Mar 2003 21:55:19 -0800 Received: from 203.199.109.165 by pv2fd.pav2.hotmail.msn.com with HTTP; Tue, 01 Apr 2003 05:55:18 GMT X-Originating-IP: [203.199.109.165] X-Originating-Email: [unixtools@hotmail.com] From: "Sunil Sunder Raj" To: cyberzone@odessos.org Date: Tue, 01 Apr 2003 11:25:18 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Apr 2003 05:55:19.0027 (UTC) FILETIME=[467A1C30:01C2F813] cc: freebsd-questions@freebsd.org Subject: Re: cron job X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 05:55:19 -0000 Hi, In your script try giving the full path of all the commands you are using. Cheers SSR >From: "Martin Tsanov" >To: >Subject: cron job >Date: Sat, 29 Mar 2003 17:09:01 +0100 > >Hello > > I have a gateway with wireless interface wi0. From time to time it >hangs down >with the following log entry in /var/log/all.log > >Mar 28 22:19:37 morpheus /kernel: wi0: failed to allocate 1594 bytes on NIC >Mar 28 22:19:37 morpheus /kernel: wi0: tx buffer allocation failed >Mar 28 22:19:37 morpheus /kernel: wi0: wi_cmd: busy bit won't clear. >Mar 28 22:19:37 morpheus /kernel: wi0: failed to allocate 1594 bytes on NIC >Mar 28 22:19:37 morpheus /kernel: wi0: mgmt. buffer allocation failed >Mar 28 22:20:42 morpheus /kernel: wi0: wi_cmd: busy bit won't clear. >Mar 28 22:21:42 morpheus /kernel: wi0: wi_cmd: busy bit won't clear. > > I tried the following script, placed as a crontab entry to reboot the >system: > >#!/bin/sh > >result=`fping 212.50.x.xxx|cut -b 17-21` >result1="alive" >if [ "$result1" = "$result" ]; then >echo $result >else >reboot >fi > >This script works as expected when envoked from the shell, but when placed >as th following crontab entry: > >*/10 * * * * root /root/reb (reb is the >script name) > >the system reboots regardless if 212.50.x.xxx is reachable or not. > >What is the difference??? And what am I doing wrong?? > >I'm tracking FreeBSD 4-STABLE and this is 4.8-RC FreeBSD 4.8-RC #0: > >Any help will be appreciated. > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" _________________________________________________________________ Mobile, masti, magic! Cool ringtones & logos. http://www.msn.co.in/mobile/ Get noticed