logo       

Re: PATCH: random sleep modification: msg#00086

gnu.core-utils.bugs

Subject: Re: PATCH: random sleep modification

Phil Tanguay wrote:
> On Thu, 20 Mar 2003, Paul Jarc wrote:
> > Why not: perl -e 'sleep(42*rand())'
>
> -rwxrwxr-x 1 ptanguay ptanguay 13128 Mar 20 17:13 ./sleep
> -rwxr-xr-x 2 root root 797576 Apr 1 2002 /usr/bin/perl
>
> 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)

Bob


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

News | FAQ | advertise