LinuxQuestions.org
Review your favorite Linux distribution.
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 01-24-2006, 07:07 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
process stop and resume.


I have FC4 running.I have two question.

1)
We have very large c programme running in konsole.(aerospace appilication)
The programme will display lot of data in the terminal we have to look it.
In some times, we have to stop the process in the mid way and see the result.
For this operation,Is there any command to stop the process and reiterate
the process again.
If we press CRTL-Z and #bg resumes the process single time only.

2)If we alter the coding and compiled it.And again we have start it
where we left.
Is it possible?

So any idea.

Thanks.
 
Old 01-24-2006, 07:20 AM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by bruse
I have FC4 running.I have two question.

1)
We have very large c programme running in konsole.(aerospace appilication)
The programme will display lot of data in the terminal we have to look it.
In some times, we have to stop the process in the mid way and see the result.
For this operation,Is there any command to stop the process and reiterate
the process again.
If we press CRTL-Z and #bg resumes the process single time only.

2)If we alter the coding and compiled it.And again we have start it
where we left.
Is it possible?

So any idea.

Thanks.

a. if you run the program and add
|less

#to the end it will only show one page at a time so you #can scroll through it manually.

b. if you run the program and add
> program.log
# it will send whatever is printed on the screen straight to a text file (program.log) to view whenever and however you want.



instead of #bg use
#fg

it will launch it in focus so that you can use CTRL+Z unlimited times
 
Old 01-24-2006, 08:14 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
Sometimes a simple CTRL-S to stop the output and a CTRL-Q to restart the output is more effective.

You may to enable the flow control. In the konsole menu bar, Settings, configure Konsole, and set Use CTRLS/CTRLQ to flow control. This makes the default for the new konsoles.

For change this setting for the current konsole only, type "stty ixon".

Last edited by marozsas; 01-24-2006 at 08:33 AM.
 
  


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
pause/resume an ssh make or other process linuxhippy Slackware 4 09-01-2005 06:03 AM
How to stop transferring files and resume later in gFTP ICO Linux - General 1 01-22-2004 09:01 AM
how to stop a process? frostmagic Programming 14 12-05-2003 12:02 PM
rc.d with K to stop the process... psyklops Linux - General 1 10-18-2003 02:14 PM
How to resume a remote process? J_Szucs Linux - Newbie 1 10-08-2002 11:16 AM

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

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