bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: random sleep modification


From: Bob Proulx
Subject: Re: PATCH: random sleep modification
Date: Thu, 20 Mar 2003 23:51:49 -0700
User-agent: Mutt/1.3.28i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]