Greg.Dunkel at mail.cuny.edu
2005-Mar-04 16:18 UTC
openssh-unix-dev Digest, Vol 23, Issue 8 -- using grep
The following message From: Thomas Binder <binder at arago.de> Subject: Re: Call for release testing To: openssh-unix-dev at mindrot.org Message-ID: <20050304103859.GA7104817 at ohm.arago.de> Content-Type: text/plain; charset="us-ascii" Hi! On Fri, Mar 04, 2005 at 07:34:59PM +1100, Darren Tucker wrote:> > Otherwise we could use grep -q "$PID" > > That's racy since it might find the argument to grep depending > on the scheduling.Also note that not all flavours of `grep' support `-q'. At least IRIX 6.x and Solaris 7/8 don't. Ciao Is not entirely accurate; there are two versions of grep on Solaris 7/8. The one in /usr/bin doesn't support -q but the one in /usr/xpg4/bin does. Need to use a complete path. /greg
Seemingly Similar Threads
- [Bug 566] ssh-keygen -l does not print key comment for rsa/dsa keys
- [Bug 439] key_try_load_public() always sets pathname as the keyfile's comment
- [Bug 433] New: Allow "ProxyCommand none" in ssh_config
- [Bug 433] Allow "ProxyCommand none" in ssh_config
- [Bug 439] New: key_try_load_public() always sets pathname as the keyfile's comment