4

How can I make my shell script pause before continuing?

  • 1
    instead of assuming it doesn't exist, maybe you should assume you were unable to find it? – Kim Mar 14 '11 at 17:37
9

You mean sleep? Or do you want to have something that waits for input before continuing? You can do that with a read call.

  • read is what I was looking for! Unfortunately, it's not present in my embedded system (using busybox).. :( – Tom Brito Mar 14 '11 at 20:56
  • @Tom Brito: read is a shell builtin; you won't find it in /bin. Does it really not work in your busybox shell? (it works in mine, but I guess maybe its possible to compile busybox w/o it) – derobert Mar 14 '11 at 21:37
  • @derobert ops! yes, it's there! sorry – Tom Brito Mar 16 '11 at 19:46
1

He might also be looking for CTRL-Z, which pauses the current process.

  • not, I'm looking for a command line.. – Tom Brito Mar 14 '11 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.