Date: Wed, 6 Dec 2000 23:45:35 -0800 From: "Crist J . Clark" <cjclark@reflexnet.net> To: Ryan <rnera@optushome.com.au> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shell scripts? Message-ID: <20001206234535.Q99903@149.211.6.64.reflexcom.com> In-Reply-To: <000301c05f95$3365a880$0200a8c0@RYAN>; from rnera@optushome.com.au on Thu, Dec 07, 2000 at 12:59:57AM %2B1000 References: <000301c05f95$3365a880$0200a8c0@RYAN>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001206234535.Q99903>