From owner-freebsd-questions Fri Apr 24 01:55:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA26497 for freebsd-questions-outgoing; Fri, 24 Apr 1998 01:55:15 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mutsgo.dyn.ml.org (root@dal37-10.ppp.iadfw.net [206.66.14.140]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA26490 for ; Fri, 24 Apr 1998 01:55:09 -0700 (PDT) (envelope-from vagner@mutsgo.dyn.ml.org) Received: (from root@localhost) by mutsgo.dyn.ml.org (8.8.8/8.8.7) id DAA03105 for questions@freebsd.org; Fri, 24 Apr 1998 03:55:05 -0500 (CDT) (envelope-from vagner) From: laszlo vagner Message-Id: <199804240855.DAA03105@mutsgo.dyn.ml.org> Subject: fetch and kill To: questions@FreeBSD.ORG Date: Fri, 24 Apr 1998 03:55:05 -0500 (CDT) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG can someone please send me a script to do this as i am not too good at knowing script language yet. i want to fetch a webpage and if it doesn't return the page, i want to hang up the modem and redial or kill and restart ppp (same result). someone suggested something like fetch http://www.freebsd.org/index.html || kill ppp or something to this effect, i dont know what || means? i thought something like if (fetch http://www.freebsd.org/index.html = false) then 'killall ppp' else exit execute ppp -auto -alias pmdemand i know it is not in the right format but thats what I need.. the syntax to do this. thanks George To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message