Archive

Archive for April, 2010

Repeat command every 10 seconds in Linux shell

April 28th, 2010 Pan No comments

If you want to repeat “uptime” every 10 seconds in Linux shell, you can type

while x=1;do uptime;sleep 10;done

it also works for other shell commands, just replace “uptime” with what you need

Categories: linux Tags:
Orange Cabin