From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman)
Subject: Re: system command
Date: 2000/11/16 [thread overview]
Message-ID: <8v1bmd$rfh$5@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 3A101BEC.95888D33@lbl.gov
In article <3A101BEC.95888D33@lbl.gov>, Tobias Funk <funk@lbl.gov> writes:
:We are using a alpha machine with VMS 6.2. I am writing a fortran
:program and trying to use a system command. I know that you can do this
:wit fortran under unix with the following command:
:value=system("command"). Is there something comparable under VMS?
Please use the lib$spawn call, it will be easier and more flexible.
Fortran and C code can be intermixed and you can call system (decc$system,
since Fortran doesn't add the prefix for you) from Fortran, but C and
Fortran have differing assumptions around default argument passing. C
assumes ASCIZ strings, while Fortran assumes ASCID strings. This means
that you would have to create C-format strings in Fortran...
I'll ask that the response to the version of this question posed over
in the Ask The Wizard area be cancelled.
--------------------------- pure personal opinion ---------------------------
Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com
prev parent reply other threads:[~2000-11-16 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-13 5:00 system command Tobias Funk
2000-11-13 5:00 ` Ken Fairfield; SLAC: 650-926-2924; FAX: 926-3515
2000-11-16 5:00 ` Hoff Hoffman [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox