Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How can I make my shell script pause before continuing?

share|improve this question
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
add comment

2 Answers

up vote 9 down vote accepted

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

share|improve this answer
    
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
add comment

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

share|improve this answer
    
not, I'm looking for a command line.. –  Tom Brito Mar 14 '11 at 20:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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