LinuxQuestions.org
Review your favorite Linux distribution.
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 01-24-2006, 06: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, 06: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, 07:14 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
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 07:33 AM.
 
  


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

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

All times are GMT -5. The time now is 06:36 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