From owner-freebsd-questions Sat Nov 21 13:58:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA26700 for freebsd-questions-outgoing; Sat, 21 Nov 1998 13:58:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA26692 for ; Sat, 21 Nov 1998 13:58:46 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id IAA01147; Sun, 22 Nov 1998 08:27:59 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id IAA08496; Sun, 22 Nov 1998 08:27:59 +1030 (CST) Message-ID: <19981122082759.G1005@freebie.lemis.com> Date: Sun, 22 Nov 1998 08:27:59 +1030 From: Greg Lehey To: Steve Friedrich , "freebsd-questions@FreeBSD.ORG" Subject: Re: ping from fvwm2 menu References: <199811212122.QAA10367@laker.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199811212122.QAA10367@laker.net>; from Steve Friedrich on Sat, Nov 21, 1998 at 04:20:03PM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 21 November 1998 at 16:20:03 -0500, Steve Friedrich wrote: > On Sat, 21 Nov 1998 19:52:41 +1030, Greg Lehey wrote: > >> Why not write a script which does it the ping and then pauses until >> you press Enter? Something like: >> >>> "ping dukkha" Exec xterm -n "dukkha" -T "ping dukkha" -e myping >> >> myping would then be: >> >> #!/bin/sh >> ping -c 5 dukkha >> read confirmation > > And "read confirmation can be as simple as: > #include > > main() > { > getchar(); > } > > You can compile it with: > cc pause.c -o pause > > and then place pause somewhere along the path. I add > /usr/local/friedrich to the path, to keep my stuff seperate from > /usr/local (which isn't at all local...) > > So Greg's script becomes: > ping -c 5 dukkha > pause Well, no, I meant 'read confirmation' literally. It can be as simple as those two words. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message