Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-05-2004, 08:35 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Distribution: Mandrake
Posts: 12
Rep:
|
redirect stdin/stdout of running process
Is there a way to redirect standard input and output after a process is running? I'm well aware of how to do it when starting a process; however, what I want to do is 'check up' on a program that's running under a separate session or in the background.
Google failed me on this one so I thought I'd try here.
Thanks in advance.
|
|
|
03-05-2004, 08:45 PM
|
#2
|
LQ Newbie
Registered: Mar 2004
Posts: 1
Rep:
|
Checking up on a process
I don't know of a way to attach to the standard input/output of a process, unless it is in the /proc filesystem. But to check up on a running process, I tend to do the following:
command > output
tail -f output
Then I can log in remotely and tail the output, even if it is still scrolling on the original screen.
-Snags
|
|
|
03-06-2004, 07:45 PM
|
#3
|
Member
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88
Rep:
|
Yeah I usually use tail, too. But sometimes you need something more powerful and sophisticated.
That is where screen comes in. It has some very powerful capabilities and it is probably already installed. At least it is for me.
Quote:
[todd@perl]$ rpm -qi screen
Name : screen Relocations: (not relocateable)
Version : 3.9.15 Vendor: Red Hat, Inc.
Release : 11 Build Date: Thu Jul 10 15:25:18 2003
Install Date: Sat Dec 27 20:37:03 2003 Build Host: porky.devel.redhat.com
Group : Applications/System Source RPM: screen-3.9.15-11.src.rpm
Size : 738578 License: GPL2
Signature : DSA/SHA1, Tue Oct 28 17:40:14 2003, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.gnu.org/software/screen
Summary : A screen manager that supports multiple logins on one terminal.
Description :
The screen utility allows you to have multiple logins on just one
terminal. Screen is useful for users who telnet into a machine or are
connected via a dumb terminal, but want to use more than just one
login.
Install the screen package if you need a screen manager that can
support multiple logins on one terminal.
|
|
|
|
03-06-2004, 08:54 PM
|
#4
|
LQ Newbie
Registered: Mar 2004
Distribution: Mandrake
Posts: 12
Original Poster
Rep:
|
Screen is exactly what I was looking for. Thanks.
|
|
|
All times are GMT -5. The time now is 04:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|