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

[Sheflug] Little script help



Hi!
	I was just wondering whether anyone can give me a hand with a
little script using sed or awk. Simply what I want to do is to search
for a strig in a kernel 2.0.36 lists of processes (that string being a
the name of a process that follows a given pattern, i.e., "cat
/tmp/$something [...]"). Also, it'd be nice to get the $something bit
off the process name.

	I tried parsing the output of ps (it's easy if you fiddle about
its options), but since this is for a mulinux server, ps is a hacked
together veresion of it, which doesn't have most of the options that
allow for an idiot's script. :-)

	Thanks,
	José
-- 
José L Gómez Dans			PhD student
Tel: +44 114 222 5582			Radar & Communications Group
FAX; +44 870 132 2990			Department of Electronic Engineering
					University of Sheffield UK
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.