Complete.Org: Mailing Lists: Archives: discussion: March 2000:
[aclug-L] Re: script to kill
Home

[aclug-L] Re: script to kill

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Cc: aclug-L@xxxxxxxxxxxx
Subject: [aclug-L] Re: script to kill
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: 22 Mar 2000 17:29:30 -0600
Reply-to: discussion@xxxxxxxxx

Debian has a "pidof" program that can return the PID of it.

-- John

glandix@xxxxxxxxxxxxxx writes:

> is there a way to grep out the pid of a process via bash script? 
> basically what i want to do is write a script to start a program, BUT
> at the beginning of the script kill any current processes of that
> program.  is there a simple way to do this?  is there a program or
> script that will return only the PID of a process when given the name
> of the program?
> jesse
> -- 
> <<<Linux lloydix 2.2.14 #1 Sat Jan 22 04:29:13 CST 2000 i586 unknown>>>
> 
> Oh my God!  Space aliens!  Don't eat me, I have a wife and kids!  Eat them.
> 
>               -- Homer Simpson
>                  Treehouse of Horror VII
> 
> 
> -- This is the discussion@xxxxxxxxx list.  To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
> 

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@xxxxxxxxxxxx |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
The 19,452nd digit of pi is 3.

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]