Re: [arch-dev-public] [signoff] openssh 5.4p1-2

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



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.

-- 
Byron Clark


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux