logo       

Re: PATCH: random sleep modification: msg#00088

gnu.core-utils.bugs

Subject: Re: PATCH: random sleep modification

On Thu, 20 Mar 2003, Bob Proulx wrote:
> > perl seems a little top heavy to replace 6 lines of code....
>
> Agreed. But you don't need perl. Just use the shell.
>
> sleep $(expr $RANDOM % 42)

Agreed, didn't know that trick. I know a lot more C than I do shell. When
all you have is a hammer, everything looks like a nail. ;>

Cheers!
-Phil


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise