LinuxQuestions.org
Register a domain and help support LQ
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, 03: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, 03:37 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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


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


All times are GMT -5. The time now is 01:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration