Search Results

Search: Posts Made By: cannon1707
30,814
Posted By cannon1707
I eventually wrote something that works... it's a...
I eventually wrote something that works... it's a little buggy but it does the job.

#!/bin/bash
process=`pgrep -U root "$1" | wc -l`
if [ $process -ge 1 ]; then
echo It is not safe to kill this...
30,814
Posted By cannon1707
Thanks for the responses. I have tried the...
Thanks for the responses. I have tried the examples posted but none of them seem to work. They either produce errors or kill the process regardless of the owner.

I have done a bit of reading and...
30,814
Posted By cannon1707
Script to Kill a Process by Name...
Hello all... new to these forums and a bit of a newbie with linux aswell.

I need to figure out how to write a shell script to kill a process by name as given to the script as an argument. I've...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy