Quote:
Originally Posted by joesto
what does this line mean?(in english ha ha )
while sleep 1h; do
|
Here the while compound command will execute/call sleep with the paramater "1h" for every loop. If you look at 'sleep --help', 1h should imply 1 hour. So the sleep command will be running or sleeping itself for 1 hour then when it's done passes the control back to while. If you press ctrl-c while "sleep" is running, a false exit code will return (probably 127 or -127) which will tell 'while' to end the loop.
Helpful commands:
Code:
help while
sleep --help
man sleep
man bash