Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 1998 08:27:59 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Steve Friedrich <SteveFriedrich@Hot-Shot.com>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: ping from fvwm2 menu
Message-ID:  <19981122082759.G1005@freebie.lemis.com>
In-Reply-To: <199811212122.QAA10367@laker.net>; from Steve Friedrich on Sat, Nov 21, 1998 at 04:20:03PM -0500
References:  <199811212122.QAA10367@laker.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981122082759.G1005>