How do i repeate a unix command ever 5 seconds?

Linux seems to have the watch command.


What command does mac os x terminal have?


Tried to type this in termial:


mac $ while [ "1" = "1" ] ; do ; id ; done

-bash: syntax error near unexpected token `;'


Robert

iMac G3 600, Mac OS X (10.4.11)

Posted on Jul 18, 2011 2:14 PM

Reply
5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do i repeate a unix command ever 5 seconds?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.