From owner-freebsd-questions Wed Dec 6 23:45:52 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 23:45:50 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 10AB837B401 for ; Wed, 6 Dec 2000 23:45:50 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 6 Dec 2000 23:44:16 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eB77jeU70247; Wed, 6 Dec 2000 23:45:40 -0800 (PST) (envelope-from cjc) Date: Wed, 6 Dec 2000 23:45:35 -0800 From: "Crist J . Clark" To: Ryan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shell scripts? Message-ID: <20001206234535.Q99903@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <000301c05f95$3365a880$0200a8c0@RYAN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000301c05f95$3365a880$0200a8c0@RYAN>; from rnera@optushome.com.au on Thu, Dec 07, 2000 at 12:59:57AM +1000 Sender: cjc@149.211.6.64.reflexcom.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 07, 2000 at 12:59:57AM +1000, Ryan wrote: > HI > > I want to write a script to ping an IP with a pattern.... > > i want to be able to just type the filename and it will ask me for the IP to > ping and send it away? What do you mean by a "pattern?" Anyway, to prompt for an IP from a script, #!/bin/sh echo -n "IP Address: " read IP ping $IP But wouldn't it be easier to specify the IP at the command line? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message