From owner-freebsd-questions Sat Nov 21 13:22:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23613 for freebsd-questions-outgoing; Sat, 21 Nov 1998 13:22:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from laker.net (jet.laker.net [205.245.74.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23606 for ; Sat, 21 Nov 1998 13:22:44 -0800 (PST) (envelope-from sfriedri@laker.net) Received: from nt (digital-pbi-112.laker.net [208.0.233.12]) by laker.net (8.9.0/8.9.LAKERNET.NO-SPAM.SPAMMERS.AND.RELAYS.WILL.BE.TRACKED.AND.PROSECUTED.) with SMTP id QAA10367; Sat, 21 Nov 1998 16:22:10 -0500 Message-Id: <199811212122.QAA10367@laker.net> From: "Steve Friedrich" To: "freebsd-questions@FreeBSD.ORG" , "Greg Lehey" Date: Sat, 21 Nov 1998 16:20:03 -0500 Reply-To: "Steve Friedrich" X-Mailer: PMMail 98 Professional (2.01.1600) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: ping from fvwm2 menu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Note that there is no message output from my pause command, but you could easily add one with printf or puts. This would be a good exercise for C newbies... HTH, and good luck... Unix systems measure "uptime" in years, Winblows measures it in minutes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message