Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Standard input
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 8205 of 8471
Post > Topic >>

Standard input

by "Tim Springer" <Tim-Springer-nospam@[EMAIL PROTECTED] > May 2, 2008 at 01:33 PM

Dear Group,

The program package I am using executes programs in the following way
(under Unix):
 program.bin < program.input

So the file "program.input" is piped in to the program "program.bin" and
thus to my understanding the "program.input" is connected 
to the standard input of the fortran program.

Now I would like to be able for a new programme to have some manual
interaction with the program. So read something from standard 
input (i.e. command line) and let the program do something based on that
input. However, since the file "program.input" is now the 
standard input I do not seem to be able to input anything from the command
line. I tried closing and reopening unit 5 but that 
does not work.

Any hints and tips how to solve this using Fortran90 or 95.

Of course the easiest for this program is to run it without piping
anything into the programme. However, that would affect all the 
other programs I have (although the change would just be in 1 library, so
it is not impossible). However, if there is an easier 
way around this I would be very interested!

Many thanks in advance!

Cheers,
Tim Springer
 




 6 Posts in Topic:
Standard input
"Tim Springer"   2008-05-02 13:33:36 
Re: Standard input
Charles Coldwell <cold  2008-05-03 13:52:18 
Re: Standard input
Arjen Markus <arjen.ma  2008-05-04 04:43:41 
Re: Standard input
Charles Coldwell <cold  2008-05-05 02:16:28 
Re: Standard input
Arjen Markus <arjen.ma  2008-05-05 00:14:12 
Re: Standard input
Charles Coldwell <cold  2008-05-05 10:40:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:12:39 CDT 2008.