Harvey Richardson writes:
> > Is it possible to execute shell commands in F90?
>
> See if your implementation supports system(). This is completely
> nonstandard though.
In case you're on UNICOS, look for ISHELL. That's what it used to be,
anyway.
Usage is different from most other Unixish systems that use SYSTEM, in
that ISHELL is a function rather than a subprogram:
stat = ISHELL('echo blorp')
If you're a good boy and use IMPLICIT NONE, be sure to declare ISHELL
and stat as integers.
All this may have changed, though. Haven't been on UNICOS in a
while...
--
John A. Turner mailto:[log in to unmask]
Senior Research Associate http://www.blueskystudios.com
Blue Sky | VIFX http://www.vifx.com
One South Road, Harrison, NY 10528 http://www.lanl.gov/home/turner
Phone: 914-381-8400 Fax: 914-381-9790/1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|