Operating System - Linux
1745832 Members
4201 Online
108723 Solutions
New Discussion юеВ

Difference between timeout and sleep

 
Karthik_sg
Frequent Advisor

Difference between timeout and sleep

Hi can any tell me the difference between timeout and sleep.Thanks in advance.
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: Difference between timeout and sleep

Talking about what? You say timeout when expires the time for an given event. You say sleep when you want to intentionally wait some time.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Karthik_sg
Frequent Advisor

Re: Difference between timeout and sleep

Allright.say for example
scp kl@19.0.0.1:/tmp/logs .
so i should specify timeout before or after the scp command.