From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3020 invoked from network); 3 Mar 1997 16:56:04 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 3 Mar 1997 16:56:04 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA29094; Mon, 3 Mar 1997 11:48:11 -0500 (EST) Resent-Date: Mon, 3 Mar 1997 11:47:24 -0500 (EST) From: Zefram Message-Id: <5500.199703031649@stone.dcs.warwick.ac.uk> Subject: Re: Is this possible/easy? To: gt5076c@cad.gatech.edu (Jason Price) Date: Mon, 3 Mar 1997 16:49:07 +0000 (GMT) Cc: zsh-users@math.gatech.edu In-Reply-To: <199703031606.LAA05312@gypsy.cad.gatech.edu> from "Jason Price" at Mar 3, 97 11:06:50 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8968.50 X-Phase: The Moon is Waning Crescent (36% of Full) X-US-Congress: Moronic fuckers X-Personality: INTJ Content-Type: text Resent-Message-ID: <"GaCYH3.0.557.S2m6p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/741 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Jason Price wrote: >I need to generate a script to ping all the IP addresses in a couple >of class C's. (So we can double check our records, and see which are >in use) Is there a way to generate this easilly? for n in {0..255}; do ping 150.150.150.$n done or, with 3.1, and less dependent on options, for((n=0; n<256; n++)); do ping 150.150.150.$n done I actually have a program that performs a related task, that uses both of the above methods at different points, for maximal efficiency. -zefram