I guess, I did not explain it properly, eh? :)
Ok! Here's the scene:
shell> daemon_process_that_generates_lots_of_messages &
This process writes the output to a file, but it generates so much
output that the little flash file system gets full very quickly. So, I
would rather have this output sent out to an xterm. Thus, inside the
daemon process I would spawn off a child which would execl
(/usr/X11R6/bin/xterm). But, now all the output that the daemon
process generates MUST come out on that xterm.
shell> man xterm
shows that xterm program has -Sccn option by which you can connect a
pseudo-term to it. I tried doing this under Linux 2.4.xx (originally
rh7.3), but that doesn't seem to work!! So, I was wondering if anyone
has already tried this and got it working before, and if so, can you
share your code? Or if you know any public domain code that would have
this. (I am assuming that "expect" should have this or similar
functionality, but I don't know where to look! :( So, your help would
be greatly appreciated.
Also, I searched the groups for previoous postings on similar issues,
and way back in 1993 someone from Germany (.de) had responded he knew
how to do this, but he had not posted a solution! Also, I am not sure
if his email address is valid still. Hence the repost.
Thanks for all your help.
> > Hi! Simple problem: Have a process that generates a lot of output.
> > Want to have this output sent out to an xterm, distinct from the
> > xterm/shell I started the process from. How do I do it? I would prefer
> > to use the -Sccn option for this. But, I have been unable to use it
> > successfully on Linux! Any hints?
> xterm -e process_name_here &