Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.