[arch-general] [arch-dev-public] [signoff] openssh 5.4p1-2
Linas
linas_fi at ymail.com
Wed Mar 10 18:15:32 CET 2010
Byron Clark wrote:
> On Wed, Mar 10, 2010 at 09:32:15AM -0700, Byron Clark wrote:
>
>> if pidof sshd | grep -q $(cat /var/run/sshd.pid); then
>> echo "pid in /var/run/sshd.pid is valid"
>> else
>> echo "invalid pid"
>> fi
>>
> Ignore that, it isn't entirely safe.
>
You may want grep -q "^$(cat /var/run/sshd.pid)\$"
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the arch-general
mailing list