Date: Sun, 16 Mar 97 00:18:30 +0100 From: Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> To: isis@servtech.com Cc: freebsd-questions@freebsd.org Subject: Re: awk<ward> Message-ID: <9703152318.AA18161@cabri.obs-besancon.fr> In-Reply-To: <332B23BB.41C67EA6@servtech.com> (message from Jen and Luke on Sat, 15 Mar 1997 17:33:31 -0500)
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> Jen and Luke writes: > Hi, > We are trying to make a command to kill something based on its name, > someone posted the instructions awhile back, but this is as far as we > got... > ps -ax | grep "string" | grep -v grep >From my /usr/X11R6/lib/X11/xdm/Xstartup file: P=`ps -x|grep [x]loadimage|awk '{print $1}'` if [ X$P != X ]; then kill $P fi Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr =============================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9703152318.AA18161>