-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ragnar Wiencke wrote:

>I know it probably sounds stupid but...
>How do I get a script to pause and wait for any keyboard input to continue? 
>I'm just testing a iptables script and wanted it to run just a few lines and 
>see what happens, keep going a few lines and so on.

In bash, this will have the desired effect:

read continue

where 'continue' is an arbitrary variable name.  It would behoove you 
to do this:

[ $DEBUG = 1 ] && read continue

Then set DEBUG to 1 at the top of your script.  Then you can toggle 
that feature on the fly.

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPFBEAb9BpdPKTBGtEQLIFACguIALhuxsfXkWWfyIY08oxCQ1S0EAn2hw
lcwtKuSO7OceNioB5QuhOhZj
=ft97
-----END PGP SIGNATURE-----




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to