SCIENTIFIC-LINUX-USERS Archives

May 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Fabien Wernli <[log in to unmask]>
Reply To:
Date:
Thu, 11 May 2006 09:45:55 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (15 lines)
On Thu, May 11, 2006 at 09:34:41AM +0200, Philipp Cain wrote:
> there seems to be two typos in the daily yum.cron script function
> random_sleep():
> 
>     utime=`cat /proc/uptime | cut -d' ' -f1 | cut -d'.' -f1`
>         if [ utime -ge 72000] ; then
>                 RAN=$RANDOM
> 
> the "if"  line should be:
> 
> if [ $utime -ge 72000 ]; then

while we're at it get rid of the UUOC and make it
| cut -d. -f1 /proc/uptime

ATOM RSS1 RSS2