Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: This hint has problems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: This hint has problems
Authored by: zacht on Jun 30, '03 02:04:13PM

Control-C only kills processes that are in the foreground in the terminal. Since the command in this hint is run in the background (with the ampersand at the end of the command line) it will not be hit by control-C.

Instead, use kill. For example, run ps (or ps -awx) to find the process number of the desktop background screen saver, then kill that process. This can be made fancier: other hints/forum threads have talked about combining this with grepping for the name of the command you want to kill. Probably the best thing to do is to use the killall command. On the other hand, ps and kill are nice and simple. (Translation: I am too lazy to read man killall.)

Anyway, how you kill the thing is your own choice. I use simple commands to go with my simple mind. The real point is that the fact that control-c doesn't work does not signal an error in the hint; it just means you have to use kill instead of control-C.

zach

PS. There is some info about background jobs ("asynchronous processes") in the man page for tcsh (which is where you end up if you do man jobs, or man bg, etc.), but you have to scroll waaaaaay down to get to it.



[ # ]