LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-21-2008, 06:33 AM   #1
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 183

Rep: Reputation: 30
Process running in background


Hi,

Say i have a process i want to run in the background on a remote machine. I ssh into the server. I open screen. I run the program and then i detach from screen using Ctrl a + d. I use screen -x to log into it again, and check the status of the process.

This process is a piece of software i have written, and it outputs (echos) certain output. What is the implication of this on the system. I have a script outputting some text inside screen all the time. Will this sort of thing fill up buffers and cause trouble, or is it safe to run it like this echoing out, and when i want to see the output i just do screen -x.

Thanks for any help/suggestions
 
Old 02-21-2008, 11:32 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
I'm not sure what screen's default buffer size is, but I
can assure you it's not inifinite. And if you're worried
about it you could explicitly tell it how many lines to
maintain in the buffer, e.g. screen -h 100


Cheers,
Tink
 
Old 02-22-2008, 12:25 AM   #3
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 183

Original Poster
Rep: Reputation: 30
Hi,

Thanks for the reply. So what will happen if i do not specify a buffer size? It should not cause the process to stop running am i right? The buffer will just keep the default amount in it, but it won't cause any problem with the process and system itself, it will just throw away all the old buffer output, or am i missing the point here?
 
Old 02-22-2008, 12:44 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Yep. No risk.


Cheers,
Tink
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent : Regarding sending a current running process in background Ricky Linux - General 5 11-27-2007 02:07 PM
running process in background forever danran Linux - General 2 11-19-2006 09:44 AM
Running kismet as a background process coolnicklas Linux - Software 2 01-04-2006 03:33 PM
background running process elbriga Programming 2 09-21-2004 06:08 PM
starting a background process running tcpdump on boot butthead Linux - Networking 1 10-15-2003 06:34 PM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration