1

I'm trying to make a timeout in my .sh file that is the same as the one in my .bat file, but I'm not sure of how to do it... at all.
It's just a simple "wait" command that last 3 seconds and has no purpose other than waiting
Here is my msdos code:

timeout /t 3 /nobreak > NUL

Can this be done in .sh?

1
  • Just use sleep 3 instead of timeout. Commented May 6, 2015 at 11:00

1 Answer 1

2

Use this:

sleep 3

so, just use sleep and the given time in seconds.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.