Ctrl+C problems
Quote:
|
Run:
Code:
ps aux Use the pid # with the kill cmd to stop it. For example I'm running the gnome shell and the pid for it is:1024. If I wanted to kill it I'd run: Code:
kill 1024 |
Looking for an automated way to kill it.
|
Quote:
Most modern puppies include pprocess - it should be in the menu under "system" or "utility" or something, or you can start it from a terminal. http://www.murga-linux.com/puppy/vie...882fe090c72533 Maybe give lxtask a try the Puppy pkg is on the page.:) http://puppylinux.org/wikka/LxTask The lxtask on this page is a bin file. http://puppylinuxfaq.org/add-on-soft...nager-pet.html |
my ctrl c and ctrl z work properly...
|
Ctrl C terminates a script if it is run from a console, but does not if started from a file manager.
Easiest way is killall [name of script] |
Quote:
Quote:
|
if you are going to be running it in the background off of the command line, which it looks like you already know how to do in post #5.
As you stated this, "My professor needs a demonstration from me and wants to see how i am killing the script. Ctrl^z and Ctrl^c are not working." the word "demonstration" clearly indicates he just wants to see you preform the task. this is a no brainier if you stop and think about it enough ;) , and requires no coding whatsoever. it is all command line driven using two terminals and knowing how to use the kill, pkill, or killall command. All you're really missing is that part where you display "bang", within your code and you are done. EXCEPT the next posted question points out something very important too. It is termed overkill, and what are you waiting for seeings how you're already sleeping? Talk about overkill. Figure out that little riddle. ;) where only one letter in the alphabet is really needed, where then is a true statement needed? another riddle for you. now go back up and read what @chrism01 had to say and think about it some more, until you get it, then hopefully you'll act on it properly. knowing what the term overkill means too would be important. Then hopefully you'll get an A+ on this assignment. :D (this post has been modified in accordance with some by-law that not even I am aware of) |
This thread is ancient, revived by accident I suppose. Deleting my comments to avoid tricking others into continuing this.
|
Guys,
can I just point out that the qn & my prev responses are from 2010 ... ;) |
well if he has not figured it out by now then what is to be said of that?
or I am really getting tired of people pulling old post and reviving them. I don't even get that board. |
Quote:
Me too, but to be fair, I reckon a number of folk who've done that find the threads through Google etc. and don't notice the dates on the thread when they add a post to it. |
@hydrurga
haha :) chuckle chuckle yeah that is the last thing I look for, when it was first posted. Too much is left to automation. |
Quote:
|
In Ubuntu 14.04 LTS, you should be able to do CTRL + ALT + DEL, just like a windows. If you cannot do that, just search "System Monitor" in the start menu. Just look for the process "bash" in the system monitor window, and kill it using the "End process" button. If you can SEE the window and it is frozen, it is easier to go to terminal and type in the following command:
Code:
xkill Code:
sudo xkill |
All times are GMT -5. The time now is 03:00 AM. |