[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How can I get a script to find out what a PID is?



There is also a helpful utility in sbin called 'pidof'.  The syntax is:

'pidof bash' and it will show you every bash process ID.


On Thu, 31 Dec 1998, Adam Alexander wrote:
>George-
>
>You can kill a process by name by using the "killall" command.  For example,
>to kill a running x11amp you would type:
>
>killall x11amp
>
>Good luck!  =)
>
>Adam Alexander
>
>
>-----Original Message-----
>From: George Lenzer <glenzer chuhpl lib oh us>
>To: Redhat list <redhat-list redhat com>
>Date: Thursday, December 31, 1998 9:46 AM
>Subject: How can I get a script to find out what a PID is?
>
>
>>I would like to be able to kill a process with cron.  Since Process IDs are
>>always different, is there a way to kill a process by the application name?
>>Or, is there a way to get the process ID and pass it to cron?
>>Alternatively, is there a way to start an application with the same PID
>>every time?  In my case, the application is 'x11amp'.  I need to schedule
>it
>>to quit at a predetermined time.
>>
>>Thanks
>>--------------------------------------------
>> George H. Lenzer
>> Technology Specialist
>> Cleveland Heights-University Heights
>> P u b l i c  L i b r a r y
>> 2345 Lee Rd. Cleveland Heights, Ohio 44118
>> Voice - (216)932-3600 x274
>> E-mail: glenzer chuhpl lib oh us
>>--------------------------------------------
>>
>>
>>--
>>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>> http://www.redhat.com http://archive.redhat.com
>>         To unsubscribe: mail redhat-list-request redhat com with
>>                       "unsubscribe" as the Subject.
>
>
>-- 
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>		http://www.redhat.com http://archive.redhat.com
>         To unsubscribe: mail redhat-list-request redhat com with 
>                       "unsubscribe" as the Subject.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]