On Wed, 2 Jun 2004 04:18, C Hamel wrote:
On Tuesday 01 June 2004 11:46, Graham Smith wrote:
On Wed, 2 Jun 2004 02:29, C Hamel wrote:
Is there an easy way to check for an application's PID# & kill it using a script? -- ...CH SuSE 9 Works Linux user# 313696 Linux box# 199365
Have a look at the killall command man killall -- Regards,
Graham Smith ---------------------------------------------------------
Wow!! I'm really impressed with the number of people who find it difficult to see the work SCRIPT!! <LOL>
Yes I did see your message and did read it. You can easily use killall in a script, for examples refer to the init scripts in /etc/init.d As you didn't specify anything regarding the script, how can we really respond. There are 100 of ways of determining the PID of a running process and depending on the process running different methods may be required. Also a script can be written in python, perl, bash or any of 50 other script languages. If you want an example please ask and specify want language and what the purpose of the script is for. Otherwise don't complain if you don't get what you think you want. -- Regards, Graham Smith ---------------------------------------------------------