LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2003, 02:24 PM   #1
epoo
Member
 
Registered: Aug 2003
Distribution: slackware 11, ubuntu 7.04
Posts: 165

Rep: Reputation: 30
exiting program loops


how do you exit program loops ? the best example i can think of this that i came across was when i running netstat with the switch to continue updating - it keeps running, but i cant figure out how to exit. i tried everything i could think with the break key, and the only way i have been able to exit has been to restart with ctrl-alt-del.
sorry if this isnt clear, but i cant think of any other way to explain it.
any suggestions ?
 
Old 12-14-2003, 02:37 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You should be able to use ctrl+c or you can log in in another console and kill it:
ps aux|grep progname
(in the second column there's program PID)
kill PID
 
  


Reply



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
Python: Need help making a simple program using arrays and loops Baix Programming 11 08-13-2005 11:26 PM
IPC Memory Share - C Program - Why not exiting for(;;) ?? brunnopessoa Programming 4 09-05-2004 09:27 PM
Exiting program w/ pthreads from sig handler LogicG8 Programming 1 07-29-2004 05:56 PM
libxml++: segmentation fault when exiting program. isl01jbe Programming 0 06-20-2004 05:47 AM
Exiting program with CTRL-Z C++ pazvant Programming 3 11-08-2003 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:54 PM.

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