For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > fork/exec/pipe









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fork/exec/pipe
Zafer Leylek

2004-09-29, 10:45 am

Hi

I am trying to control to start an octave process where I can write
to it read the output back into perl.

For example I would like to :

1 - Start octave
2 - Write a=1 b=2. Read output into perl
3 - Write a+b. Read output into perl and so on.

Could someone please help me do this.

Thanks
Wiggins d Anconia

2004-09-29, 10:45 am

> Hi
>
> I am trying to control to start an octave process where I can write
> to it read the output back into perl.
>
> For example I would like to :
>
> 1 - Start octave
> 2 - Write a=1 b=2. Read output into perl
> 3 - Write a+b. Read output into perl and so on.
>
> Could someone please help me do this.
>
> Thanks
>


Have a look at the following docs,

perldoc perlipc
perldoc IPC::Open3
perldoc IPC::Open2
perldoc perlopentut

See if they help. In general the above will allow you to avoid messing
with setting up your own pipes, etc. but still allow you to read/write
to a process. If they don't work you can get lower level but start
there first.

http://danconia.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com