Ho
How Can I redirecting stdin/stdout of running
process ?
thanx
thanx
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
lolQuote:>> Ho
>> How Can I redirecting stdin/stdout of running
>> process ?
> command < infile > outfile
>>> Ho
>>> How Can I redirecting stdin/stdout of running
>>> process ?
>> command < infile > outfile
> lol
> i want redirect stdin &stdout of process after
> execution (using pid of process )
For all intents and purposes, it is impossible to redirect the stdin/stdout
of a running process.
>> command < infile > outfile
>lol
>i want redirect stdin &stdout of process after
>execution (using pid of process )
where files in /dev some pseudo-devices designed for.
After doing this you can manage all in/out streams for that command.
--
BR, Mishka.
Any doc to understend how do it ?Quote:> That command have a bit of sense:
> $ command < /dev/some_input > /dev/some_output 2> /dev/some_errout
> where files in /dev some pseudo-devices designed for.
> After doing this you can manage all in/out streams for that command.
> > That command have a bit of sense:
> > $ command < /dev/some_input > /dev/some_output 2> /dev/some_errout
> > where files in /dev some pseudo-devices designed for.
> > After doing this you can manage all in/out streams for that command.
> Any doc to understend how do it ?
> Thanks
-Scott
I want control a program menu driven (edonkey command line)Quote:> You have not said what you really want this for...
> But if all you want is to interact with a process then "screen" is a
> good tool. It can just run in the background and you can attach to it
> at any time. I use it for game servers all the time. I just want them
> to run in the background unless I want to change something or there is
> a problem, then I just attach to the session. It can even save a
> history of the output.
>> You have not said what you really want this for...
>> But if all you want is to interact with a process then "screen" is a
>> good tool. It can just run in the background and you can attach to it
>> at any time. I use it for game servers all the time. I just want them
>> to run in the background unless I want to change something or there is
>> a problem, then I just attach to the session. It can even save a
>> history of the output.
>I want control a program menu driven (edonkey command line)
>from any tty.
>Edonkey has a server mode but "controller" is a heavy java
>program unlike for me.
-rs-
I hope to have a success using screen. I know it butQuote:> i'll second what the previous poster said. "screen" is exactly
> the tool you want for this job.
thanx to you and Scott
It's ok! screen is wonderful!Quote:> I hope to have a success using screen. I know it but
> I dont know this feature. If I understand well I just attach
> to screen session.
>> I hope to have a success using screen. I know it but
>> I dont know this feature. If I understand well I just attach
>> to screen session.
>It's ok! screen is wonderful!
install it
run "screen"
start long-running process in the screen session
when you're done, hit ctrl-a followed by d (for detach)
later when you want to come back to it, type screen -r
it's fab.
-rs-
screen -m -d -S coolname /bin/app
screen -r coolname
-Scott
1. Suggestions for redirecting stdin/stdout from a running process?
I'm not a Linux/Unix expert so I was hoping someone here might be able to
help me with this. Suppose a process is running which makes use of stdin
and stdout (it has an interactive text-based interface). What I would like
to try and do is to make it possible for a user to login to the system, then
somehow redirect the stdout and stdin of the running process so that the
text-based UI could then be operated under the user's own login shell. Is
this possible? What I'm thinking is that the process could listen for a
certain signal, which would tell it to redirect it's stdout/stdin to a
different tty. The user who logged in and wants to interact with the
process would run a script or small program to send this signal.
Any thoughts?
Thanks!
Mark
3. redirect stdin/stdout does not for the ftp client child process
4. nohup'd process dies when I log out
9. HOW TO RE-DIRECT THE STDIN/STDOUT FOR A PROCESS RUNNING IN THE BACKGROUND
10. redirecting STDOUT of a bg process to STDOUT of a new xterm
11. Redirecting the stdout of a running process?
12. Redirecting stdout/stdin to socket
13. redirect terminal stdin/stdout