How can I quit an app without kill it ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can I quit an app without kill it ?
# 1  
Old 05-26-2009
How can I quit an app without kill it ?

How can I quit an app without kill it ?

I don't want to kill 6123

just to quit that application gracefully.

thanks
# 2  
Old 05-26-2009
^c can be used for termination.

or pls have a look at bellow link for signal handling

What are Unix signals?
# 3  
Old 05-26-2009
thanks for reply

could you give me more information about ^C ?

how should I use it ?

Code:
^C 1647

I've read the page you sent me. I've tried SIGQUIT:

Code:
kill -3 1417

but I got: "the application crashed, in my GUI".
# 4  
Old 05-26-2009
^C (representation of pressing the CTRL and C keys at the same time) interrupts a process running in the foreground. The same effect can be created by sending SIGINT (2) to the process:
Code:
kill -2 PID

Other interesting signals are SIGTERM (15) to tell the process to terminate normally, SIGKILL (9) to terminate it as quickly as possible, and SIGHUP (1). The last one tells the process that it's terminal (user input) is no longer connected (eg. for hung SSH session), but many daemons re-read their configuration on that signal.
# 5  
Old 05-26-2009
kill -2 PID will do the trick !
# 6  
Old 05-26-2009
GREAT, finally Smilie
thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies

2. Shell Programming and Scripting

Need to quit out of for loop.

Hi, Here is my code to send read.txt to three servers. col="prd167.mybank.com prd168.mybank.com bsprd169.mybank.com" set -A look $col for IndixList in ${look}; do scp /tmp/read.txt admin@$IndixList:/tmp done This works and all the 3 servers gets the read.txt file. However,... (8 Replies)
Discussion started by: mohtashims
8 Replies

3. 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

4. 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

5. 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

6. 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

7. Shell Programming and Scripting

how to close an .app without using Kill

I want to close an application but to kill it seems to me very rude.I want to let it do her things before closing.Any idea? Thanks. (2 Replies)
Discussion started by: Tártaro
2 Replies

8. 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

9. UNIX for Dummies Questions & Answers

how to quit from glance

hi, if i am in glance, how do i exit? thanks (2 Replies)
Discussion started by: yls177
2 Replies
Login or Register to Ask a Question