On Sam, 03 Jun 2006, Mattia Dongili wrote:
> oh... running it on the command line[1] seems to work, but you're right, the
> script still is not stopping cpufreqd (pidofproc returns 2).
> 
> [1]: if [ -f /var/run/cpufreqd.pid ] ; then cat /var/run/cpufreqd.pid |
> read pid ; fi ; if [ -n "${pid:-}" ]; then echo "$pid" ; fi

Changing it to
        read pid < "$pidfile"
fixes these problems.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
FORD    Tell me Arthur...
ARTHUR  Yes?
FORD    This boulder we're stuck under, how big would you say it was? Roughly?
ARTHUR  Oh, about the size of Coventry Cathedral.
FORD    Do you think we could move it? (Arthur doesn't reply) Just asking.
                 --- Ford and Arthur in a tricky situation, Fit the Eighth.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to