[lug] how to handle open files - upload server

The Matt thompsma at colorado.edu
Tue Jan 13 11:27:57 MST 2004

On Tue, 2004-01-13 at 10:55, Dan Ferris wrote:
> Like this for example:
> lsof -c /ssh/ | awk '{ if ($8 ~ /\/dev/) { print $8 }}'
> Shows all files opened by any program named ssh in the dev directory.

OK, I'm not lsof guru, but why doesn't:

lsof -c /ssh/ -a +D /dev

show the same output as above?  The first command shows /dev/pts/? files
as well as /dev/null.  The second which should search through /dev,


I am a theoretical chemist.  Fear me!
 Matt Thompson -- http://ucsub.colorado.edu/~thompsma/
 440 UCB, Boulder, CO  80309-0440
 JILA A510, 303-492-4662
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20040113/67197b26/attachment.pgp>

More information about the LUG mailing list