Hi ,
Just use eax with =out the "-" for linux.
example for named
ps eax | grep named | sed -e 's/^ *//' -e 's/ .*//'
Larry
At 12:18 AM 4/29/00 +0200, Paul van Empelen wrote:
>
>Hi,
>
>I am working on a bourne script that can restart services if they hang.
>If the process does not respond, I
On Fri, Apr 28, 2000 at 07:39:37PM -0400, B.C.J.O wrote:
> Evi Nemeth had a good trick for dealing with that situation using the
> short test notation:
>
> f'rinstance, you want to nuke every process owned by user:
>
> kill -9 `ps aux | grep [u]ser | awk '{print $2}'`
>
> ... where the trick is
On Sat, 29 Apr 2000, Tamas TEVESZ wrote:
> On Sat, 29 Apr 2000, Paul van Empelen wrote:
>
> > And not all processes use a /var/run/.pid. With the commands
> > ps ax | grep process, you sometimes see the 'grep process' in the output.
> > That's not what I want.
>
> grep -v grep
Evi Nemeth h
On Sat, 29 Apr 2000, Paul van Empelen wrote:
> And not all processes use a /var/run/.pid. With the commands
> ps ax | grep process, you sometimes see the 'grep process' in the output.
> That's not what I want.
grep -v grep
--
[-]
there's a devil waiting outside your door
Dont reinvent the wheel. With that said, here are some pointers :)
([EMAIL PROTECTED])(23/ttyp2)(04:26pm:04/28/00)-
($:~)- ps auxwww | grep q[m]ail
qmaill1482 0.0 0.2 848 144 ? S Jan 24 1:54 splogger qmail
qmailq1485 0.0 0.1 84068 ? S Jan 24 0:57 qmail-clean
qmail
Hi,
I am working on a bourne script that can restart services if they hang.
If the process does not respond, I want to kill and restart it, but I
haven't found a good way to locate it's process ID from the ps output.
And not all processes use a /var/run/.pid. With the commands
ps ax | grep pro
6 matches
Mail list logo