Advertisement
Guest User

requires a keypress

a guest
Jul 3rd, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # When I run the line: tr -dc '1-6' < /dev/urandom | head -c 1
  2. # from a command prompt in Ubuntu 10.04, it works fine.
  3. # When I run it in the script below, nothing is displayed, and the script does not end
  4. # until I press any key. This keystroke is then echoed at the beginning of the next command prompt.
  5. ####### script begins below #######
  6. #!/bin/bash
  7. SLPTIME=`tr -dc '1-6' < /dev/urandom | head -c 1`
  8. echo $SLPTIME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement