Date: Sat, 5 Jun 1999 18:08:45 -0500 (EST) From: Alfred Perlstein <bright@rush.net> To: William Woods <wwoods@cybcon.com> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: script questions...... Message-ID: <Pine.BSF.3.96.990605180810.9491X-100000@cygnus.rush.net> In-Reply-To: <000001beaf9e$b1d87880$124b93cd@william>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 5 Jun 1999, William Woods wrote: > I have need for a script that will do something like this.... > > command > echo ........... > command > echo ........... > echo................. > command > echo Please insert data disk and hit any key to continue...... > > That uis where I am stumped, how do I do that last line, have the system > check for keypress and continue? check the "sh" manpage: read [ -p prompt ] [ -t timeout ] [ -e ] variable ... The prompt is printed if the -p option is specified and the stan- dard input is a terminal. Then a line is read from the standard input. The trailing newline is deleted from the line and the line is split as described in the section on word splitting above, and the pieces are assigned to the variables in order. If .... -Alfred 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?Pine.BSF.3.96.990605180810.9491X-100000>