Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message> 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.