-
From: "Robert Huff" <[EMAIL PROTECTED]>
To: "Hinkie" <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2007 2:45 PM
Subject: Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)
Hello:
> from edit.php create / write into new file /us
Dear People
As a courtesy to anyone interested I have finally sovled this (I hope), this is
what I did, this is on a FreeBSD pfSense firewall router.
Essentially the fix is to ping the static IP's first hop, if this is down then
flick the WAN NIC state down and up, this restores
the lost conne
ume if it won't run here then crontab won't run it either?
Kind regards
David Hingston
- Original Message -
From: "Eric Crist" <[EMAIL PROTECTED]>
To: "Hinkie" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, August 30, 2007 7:30 AM
Subject: Re: FreeBS
On 2007-08-29 14:18, Eric Crist <[EMAIL PROTECTED]> wrote:
>On Aug 29, 2007, at 1:54 PMAug 29, 2007, Giorgos Keramidas wrote:
>> On 2007-08-29 18:51, Wojciech Puchar <[EMAIL PROTECTED]>
>> wrote:
>>> fragment from my test program (used for other thing but doesn't matter)
>>>
>>> /sbin/ping -i 0.5 -
ere then crontab won't run it either?
Kind regards
David Hingston
- Original Message -
From: "Eric Crist" <[EMAIL PROTECTED]>
To: "Hinkie" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, August 30, 2007 7:30 AM
Subject: Re: FreeBSD Cron Job to run (ifconfig
can tell I am learning this syntax!
Can you help me further?
With thanks
David Hingston
- Original Message -
From: "Eric Crist" <[EMAIL PROTECTED]>
To: "Hinkie" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, August 30, 2007 2:17 AM
Subject: Re: FreeBSD Cr
On Aug 29, 2007, at 1:54 PMAug 29, 2007, Giorgos Keramidas wrote:
On 2007-08-29 18:51, Wojciech Puchar
<[EMAIL PROTECTED]> wrote:
fragment from my test program (used for other thing but doesn't
matter)
/sbin/ping -i 0.5 -s 1450 -c 3 tested_host >/dev/null 2>/dev/null
if [ $? != 0 ];then
p
me further?
With thanks
David Hingston
- Original Message -
From: "Eric Crist" <[EMAIL PROTECTED]>
To: "Hinkie" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, August 30, 2007 2:17 AM
Subject: Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)
O
On 2007-08-29 18:51, Wojciech Puchar <[EMAIL PROTECTED]> wrote:
> fragment from my test program (used for other thing but doesn't matter)
>
> /sbin/ping -i 0.5 -s 1450 -c 3 tested_host >/dev/null 2>/dev/null
> if [ $? != 0 ];then
> perform_action_if_doesnt_ping
> fi
I'm not sure if '!=' is a 'po
fragment from my test program (used for other thing but doesn't matter)
/sbin/ping -i 0.5 -s 1450 -c 3 tested_host >/dev/null 2>/dev/null
if [ $? != 0 ];then
perform_action_if_doesnt_ping
fi
___
freebsd-questions@freebsd.org mailing list
http://list
On 2007-08-30 01:03, Hinkie <[EMAIL PROTECTED]> wrote:
> Hi
>
> I want to run a cron job in /etc/crontab that runs (ifconfig em0 down;
> ifconfig em0 up) if my cables static ip gateway can't be pinged but I
> can't figure it out. I can't get the syntax that runs in the command
> window, to then pu
> Here's what I'd use:
> ping -c 1 a.b.c.d; TESTV=$?; if [ $TESTV != 0 ]; then `ifconfig em0 down`;
I'd suggest something more like:
ping -c 1 $host
[ $? -eq 0 ] && ifconfig em0 down && ifconfig em0 up
or
ping -c 1 $host
if [ $? -eq 0 ]; then
ifconfig em0 down && ifconfig em0 up
fi
--
On Aug 29, 2007, at 8:03 AMAug 29, 2007, Hinkie wrote:
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0
down; ifconfig em0 up) if my cables static ip gateway can't be
pinged but I can't figure it out. I can't get the syntax that runs
in the command window, to then put
Written by Hinkie on 08/29/07 08:03>>
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0 down; ifconfig
em0 up) if my cables static ip gateway can't be pinged but I can't figure it
out. I can't get the syntax that runs in the command window, to then put intot
the crontab
14 matches
Mail list logo