LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2007, 05:48 AM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Rep: Reputation: 16
Quit console program


Hello guys,
I need your help regarding exiting consle program.
I'm not sure if this the right place to ask, but on HP unix machine when I open console window and type command to start one program that basically works in infinite loop don't know how to quit it.
One way would be to simply close whole console window, but I wonder is there any "standard" way to try.
What would you recommend?
Thanks
 
Old 03-07-2007, 06:50 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could use "kill -SIGQUIT <process number>" to send a signal for the program to quit.

You can also use the jobspec instead of the process number.
For the bash shell at least, type "help kill" for more information. There also is a "man kill" man page and you can get a list of signals from "kill -l".
 
Old 03-07-2007, 06:59 AM   #3
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
Does Ctrl+C or Ctrl+D help?
 
Old 03-07-2007, 08:30 AM   #4
shshjun
Member
 
Registered: Nov 2004
Location: del
Distribution: jds
Posts: 88

Rep: Reputation: 15
try ctrl-h or ctrl-p since this is a hp machine : )
 
  


Reply

Tags
application, console


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glibc causes program to quit irisevelyn Linux - Software 9 06-01-2005 01:48 PM
program console output using C xrado Programming 5 04-04-2005 02:48 PM
Howto run a program for 15 seconds and let it quit itself. bglnelissen Programming 3 03-16-2005 09:37 AM
quit program after a specific time (prob. BASH) bglnelissen Linux - General 2 01-25-2005 01:22 AM
using console after launching a program off it Lechium Linux - Newbie 3 08-07-2004 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration