Hi,
Olegil at home wrote:
But what can you do? Is there a good way in AmigaOS to
say "I want to run
this application, and this file descriptor (which I have open for writing)
will be the stdin, and THESE file descriptors (which I have open for
reading) will be stdout/stderr". And if so, does it port well into POSIX?
If you don't get what I'm hinting at here, I'm actually suggesting writing
a shell from scratch, AND making it portable :-P
As Peter proposed, you can use dos/System. The three tags, SYS_Input,
SYS_Output and SYS_Error define the input, output, and error streams for
the command you run.
Plus, you can also use the pipe handler: Just open pipe:xxx twice, and
give the input handle to the new process... if you write into the write
handle, the other program will get that as input...
It's portable in the sense that it always boils down to something like
this...
Regards,
--
Thomas Frieden <ThomasF(a)hyperion-entertainment.biz>
Hyperion Entertainment
- Naur dan i-deryg lhuin