- Article pages now have a discussion option at the bottom (moderated/captcha, but no registration needed) - recently upgraded to a newer Dokuwiki version, please report problems

Pausing a script (like MSDOS pause command)

snipplet:
terminal,
pause,
input
LastUpdate:
2010-07-31
Contributor:
Jan Schampera
type:
snipplet

From the example section of the read command, something that acts similar to the MSDOS pause command:

pause() {
  local dummy
  read -s -r -p "Press any key to continue..." -n 1 dummy
}

Discussion

Enter your comment
 
snipplets/pause_command.txt · Last modified: 2011/06/24 07:10 by thebonsai
GNU Free Documentation License 1.3
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0