Date: Wed, 28 Nov 2001 17:51:11 -0500 (EST) From: Marco Radzinschi <marco@radzinschi.com> To: Todd Reed <ex279@hotmail.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Kill popd shell Script Message-ID: <20011128174842.W97804-100000@mail.radzinschi.com> In-Reply-To: <F300IWVzeFHfLQV8xl800015a79@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello: This would put it in a shell variable: set variable=`ps -a | grep popd | cut -c1-5' Also, you could simply kill it right away with: kill `ps -a | grep popd | cut -c1-5' (Note that the ` is NOT an apostrophe - it is the symbol on the ~ key) Marco Radzinschi E-Mail: marco@radzinschi.com AOL IM: CrackedBoy Running FreeBSD 4.4-RELEASE i386 5:48PM up 17 days, 2:17, 1 user, load averages: 1.01, 1.00, 1.00 On Wed, 28 Nov 2001, Todd Reed wrote: > I'm needing some help. I'm wanting to kill Popd before the system shutdowns > and I would like it to be automated like the httpd and mysqld. If I run the > command ps -a | grep popd | cut -c1-5, I get the PID. Is there any way to > get that varible into a shell script varible without having to write it to a > file then read from the file, then delete the file? Or am I going about > this the wrong way? > > --Todd > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011128174842.W97804-100000>