From owner-freebsd-questions Thu Nov 29 2:20:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from marble.dublin.wbtsystems.com (marble.dublin.wbtsystems.com [193.120.231.8]) by hub.freebsd.org (Postfix) with ESMTP id F3BE637B4EC for ; Thu, 29 Nov 2001 02:20:21 -0800 (PST) Received: from SUNYA (SUNYA.dublin.wbtsystems.com [193.120.231.190]) (authenticated) by marble.dublin.wbtsystems.com (8.11.6/8.11.6) with ESMTP id fATAK6L27234; Thu, 29 Nov 2001 10:20:06 GMT From: "Barry Byrne" To: "Marco Radzinschi" , "Todd Reed" Cc: Subject: RE: Kill popd shell Script Date: Thu, 29 Nov 2001 10:20:05 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20011128174842.W97804-100000@mail.radzinschi.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Todd: Even simpler, you could just do: killall popd Also, if you are using bourne shell or variants, the format for setting the variable is: variable=`ps -a | grep popd | cut -c1-5` Cheers, Barry > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Marco > Radzinschi > Sent: 28 November 2001 22:51 > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message