Sponsored Content
Full Discussion: Kill a process from a grep
Top Forums Shell Programming and Scripting Kill a process from a grep Post 302254007 by Franklin52 on Monday 3rd of November 2008 10:11:22 AM
Old 11-03-2008
Try this:

Code:
kill `ps -A|awk '/firefox/{print $1}'`

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

2. Shell Programming and Scripting

how to start a process and make it sleep for 5 mins and then kill that process

how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies

3. Programming

kill(0,-9) don't kill the process

Hi all i have simple c program , when i wish to kill the app im using kill(0,-9) , but it seams this command don't do any thing and the program. just ignore it . what im doing wrong here ? im using HP-UX ia64 Thanks (9 Replies)
Discussion started by: umen
9 Replies

4. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

5. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

6. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

7. Shell Programming and Scripting

grep the process id and kill all the filtered process

Hi I want to write a shell script which can find the process id's of all the process and kill them eg: ps ax | grep rv_ 3015 ? S 0:00 /home/vivek/Desktop/rv_server 3020 ? S 0:00 /home/vivek/Desktop/rv_gps 3022 ? S 0:00 /home/vivek/Desktop/rv_show ... (7 Replies)
Discussion started by: vivek_naragund
7 Replies

8. UNIX for Dummies Questions & Answers

Script to start background process and then kill process

What I need to learn is how to use a script that launches background processes, and then kills those processes as needed. The script successfully launches the script. But how do I check to see if the job exists before I kill it? I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies

9. Shell Programming and Scripting

kill a process if grep match is found

Hi, I need something unusual, I guess. I need to start a process, and if that process displays a specific error message, I need to kill that process and restart it. Something like: startprocess | grep -i "This is the specific error message" && kill $pidof(startprocess) Explanation, I need... (4 Replies)
Discussion started by: burek
4 Replies

10. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
GOZILLA(1)						      General Commands Manual							GOZILLA(1)

NAME
gozilla - force mozilla to display specified source file. SYNOPSIS
gozilla [-b browser][-p][+no] file gozilla [-b browser][-p] -d name DESCRIPTION
Gozilla force mozilla to display specified source file as a hypertext. Gozilla can be used with other browsers like firefox and epiphany. In advance of using this command, you must execute gtags(1) and htags(1) at the root directory of the source tree to make tag files. Then you can execute gozilla at anywhere in the source tree. First form: You can specify source file and the line number optionally. Second form: You can specify definition name directly. Definition name must exist in 'GTAGS' tag file. Some browsers require you to load it before executing gozilla. Whether or not gozilla waits for exiting of browser depends on browser. OPTIONS
The following options are available: +no line number. It must be a line on which function definition or function reference is exist. If you execute htags(1) with -l option, you can specify any line. -b browser browser to use. By default, it is assumed mozilla. -d name print function. --help Show help. -p just print generated target URL. file path of source file or alias name. -q, --quiet Quiet mode. -v, --verbose Verbose mode. --version Show version number. FILES
'HTML/' hypertext of source tree. 'GTAGS/' tags file for function definitions. '$HOME/.gozillarc' alias file. Please read source code for the detail. ENVIRONMENT
GTAGSROOT The directory which is the root of source tree. GTAGSDBPATH The directory on which gtags database exist. This value is ignored when GTAGSROOT is not defined. BROWSER browser to use. By default, it is assumed mozilla. EXAMPLES
$ gtags $ htags $ global -x main main 82 ctags.c main(argc, argv) $ mozilla & $ gozilla +82 ctags.c $ firefox & $ gozilla -b firefox +82 ctags.c $ setenv BROWSER 'epiphany --new-tab' $ epiphany & $ gozilla +82 ctags.c DIAGNOSTICS
Gozilla exits with a non 0 value if an error occurred, 0 otherwise. SEE ALSO
global(1), gtags(1), htags(1), firefox(1), epiphany(1), mozilla(1). GNU GLOBAL source code tag system (http://www.gnu.org/software/global/). NOTES
Gozilla means 'Global for mozilla'. BUGS
Gozilla can treat not only source file but also normal file, directory, HTML file and even URL, because it is omnivorous. AUTHORS
Tama Communications Corporation. HISTORY
The gozilla command appeared in FreeBSD 2.2.2 but did not installed by default. GNU Project July 2006 GOZILLA(1)
All times are GMT -4. The time now is 08:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy