Mailinglist Archive: opensuse (5100 mails)
| < Previous | Next > |
Re: [SLE] How to find PID
- From: C Hamel <vgm2@xxxxxxxxxx>
- Date: Wed, 2 Jun 2004 12:02:59 -0500
- Message-id: <200406021203.00278.vgm2@xxxxxxxxxx>
On Wednesday 02 June 2004 10:38, Patrick Shanahan wrote:
> * C Hamel <xx@xxxxx> [06-02-04 10:10]:
> > On Wednesday 02 June 2004 08:07, Jostein Berntsen wrote:
> > > I like this way:
> > >
> > > #!/bin/sh
> > > while true
> > > do
> > > kill -9 `ps aux | grep -i $1 | awk '{ print $2 }'` sleep 2
> > > done
> > >
> > > put this in a script called kl. And run for ex. 'kl mozilla' when it
> > > gets to heavy.
> >
> > I like the simplicity, but is the usual test for a pid done beforehand
> > for the particular application?
>
> Find a site on the web which describes bash scripts such as:
> http://www.tldp.org/LDP/abs/html/
> and decipher the script as you would parse a sentense in english and
> you will *learn* for yourself what you have asked. And you will be
> more likely to remember the method and become self-sufficient.
>
> Then the next time you have a similar question, you will be able to
> search for the answer yourself instead of *depending* on others efforts
> to supplement your knowledge when the information is *so* readily
> available.
>
> I would be more than happy to mow my neighbor's grass when he is out of
> town or temporarily physically unable, but not while he is able and
> lounging on the patio drinking a cold Budweiser.
> --
> Patrick Shanahan Registered Linux User #207535
> http://wahoo.no-ip.org @ http://counter.li.org
> HOG # US1244711
Point taken... and that is *exactly* what I am doing! :-) Someone else was
kind enough to deliver some resource links *w/o* bitching me out! <G>
Regards...
--
...CH
SuSE 9 Works
Linux user# 313696
Linux box# 199365
> * C Hamel <xx@xxxxx> [06-02-04 10:10]:
> > On Wednesday 02 June 2004 08:07, Jostein Berntsen wrote:
> > > I like this way:
> > >
> > > #!/bin/sh
> > > while true
> > > do
> > > kill -9 `ps aux | grep -i $1 | awk '{ print $2 }'` sleep 2
> > > done
> > >
> > > put this in a script called kl. And run for ex. 'kl mozilla' when it
> > > gets to heavy.
> >
> > I like the simplicity, but is the usual test for a pid done beforehand
> > for the particular application?
>
> Find a site on the web which describes bash scripts such as:
> http://www.tldp.org/LDP/abs/html/
> and decipher the script as you would parse a sentense in english and
> you will *learn* for yourself what you have asked. And you will be
> more likely to remember the method and become self-sufficient.
>
> Then the next time you have a similar question, you will be able to
> search for the answer yourself instead of *depending* on others efforts
> to supplement your knowledge when the information is *so* readily
> available.
>
> I would be more than happy to mow my neighbor's grass when he is out of
> town or temporarily physically unable, but not while he is able and
> lounging on the patio drinking a cold Budweiser.
> --
> Patrick Shanahan Registered Linux User #207535
> http://wahoo.no-ip.org @ http://counter.li.org
> HOG # US1244711
Point taken... and that is *exactly* what I am doing! :-) Someone else was
kind enough to deliver some resource links *w/o* bitching me out! <G>
Regards...
--
...CH
SuSE 9 Works
Linux user# 313696
Linux box# 199365
| < Previous | Next > |