View Full Version : Piping into a Fortran program
donsta
02-10-2004, 04:55 AM
Hi, I only have the exe for a Fortran program so I would like to put it inside a loop and pipe a line of text into it a number of times. I've been told that it is possible with Lahey to set up a pipe so if someone can tell me how it would be most appreciated.
Thank you,
Don Stazic
tzeis
02-10-2004, 06:55 PM
You can use the pipe operator to redirect the console output of one program to the console input of another program. This works on both Windows and Unix based operating systems.
Example:
prog1 | prog2
Here the output from prog1 that would normally go to the console is redirected to the input that prog2 would normally accept from the keyboard.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.