[ANN] msleep, usleep in bash

362 views
Skip to first unread message

AJ ONeal

unread,
Jan 26, 2011, 1:22:49 PM1/26/11
to BYU Unix Users Group, uta...@googlegroups.com, Provo Linux Users Group
I don't know about y'all, but I often find cases where I wish I had msleep in bash.

https://github.com/coolaj86/msleep-commandline

Now I do. Just thought I'd share.

AJ ONeal

Dave Smith

unread,
Jan 26, 2011, 9:39:18 PM1/26/11
to uta...@googlegroups.com

I think the reason usleep doesn't exist on the command line is because you could never get microsecond resolution due to the fact that you are invoking a new process. It would have to be a shell built-in to have any degree of accuracy I suspect.

--Dave

Reply all
Reply to author
Forward
0 new messages