Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There's usleep() in libc, but I didn't find any command line utility to do this.

Though I've written a piece of C code, I'm still wonder if it already existed somewhere?

share|improve this question
up vote 2 down vote accepted

SleepEnh maybe?

share|improve this answer
Well, sleepenh uses float numbers, I'm just curious whether it's useable in embedded system. Thanks. – Xiè Jìléi Jul 21 '10 at 13:03

There is a version of usleep as part of the nosql RDBM package. The installation of nosql requires procmail and postfix, so it is a bit heavy handed to install all that for one tiny utility.

However, if you locate and download the .deb package without installing it, you can use tar to unwind it (a deb package is simply a compressed tar file containing compressed tar files). Extract only /usr/lib/nosql/usleep, and put it somewhere in your path where you have permissions to install it (/usr/bin, /usr/local/bin, ~/bin). It "just worked" on my Lucid system, so apparently the required libraries (glibc I'd bet) are there; no additional packages required.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .