Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 10:20:05 -0000
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "Marco Radzinschi" <marco@radzinschi.com>, "Todd Reed" <ex279@hotmail.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Kill popd shell Script
Message-ID:  <NCBBIAMNAKDKFJIIGNPKIEFLGLAA.barry.byrne@wbtsystems.com>
In-Reply-To: <20011128174842.W97804-100000@mail.radzinschi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKIEFLGLAA.barry.byrne>