T. N. Venkatesh forced the electrons to say:
> Tried this program. The pid and name keeps changing. It can be killed
> by the following command (in tcsh)
>
> kill `ps | grep tmp | awk '{print($1)}'`
Wow! This old little sig of mine is still floating... :-)
One point though - awk can do what grep can do, so the above could be easily
written as (in bash):
kill $(ps | awk ' /tmp/ { print $1; }')
Of course, you might end up killing other programs as well, since on my machine
ps x | grep tmp comes up with:
1141 ? S 0:03 /usr/X11R6/lib/X11/fvwm2//FvwmTaskBar 9 4 /tmp/binand
1146 ? S 0:03 /usr/X11R6/lib/X11/fvwm2//FvwmPager 11 4 /tmp/binand/
12440 pts/5 S 0:02 /usr/bin/vim +11 /tmp/binand/mutt-jediland-8030-111
(The vim entry above is the editor session for this email).
So, this kill method is not all that foolproof!
Binand
PS: My name is Binand!
--
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. ([EMAIL PROTECTED])
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/