Home > Archive > Fortran > January 2006 > external program run
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 |
external program run
|
|
|
| Hi,
I would like to ask you how to run an external program (without any special
dll's) from F77 code?
My tasko is to run such command:
prog.x > out.txt
| |
|
| this will depend on your compiler, as there is no standard method.
Something like
CALL system("prog.x > out.txt")
works for many. If not, try to search this group for 'system'.
Joost
| |
| Tim Prince 2006-01-15, 7:12 pm |
| Joost wrote:
> this will depend on your compiler, as there is no standard method.
> Something like
> CALL system("prog.x > out.txt")
> works for many. If not, try to search this group for 'system'.
I = system("prog.x > out.txt")
preferably with the compiler's own USE, works for more. Some don't care
which.
| |
| robert.corbett@sun.com 2006-01-17, 3:59 am |
| > I = system("prog.x > out.txt")
Remember to declare SYSTEM to have type INTEGER.
For Sun Fortran, SH is preferable to SYSTEM in most
cases.
Bob Corbett
|
|
|
|
|