From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b722912089e5013d X-Google-Attributes: gid1164f8,public From: Fairfield@SLAC.Stanford.EDU (Ken Fairfield; SLAC: 650-926-2924; FAX: 926-3515) Subject: Re: system command Date: 2000/11/13 Message-ID: #1/1 X-Deja-AN: 693178019 References: <3A101BEC.95888D33@lbl.gov> Organization: Stanford Linear Accelerator Center Newsgroups: comp.sys.dec In article <3A101BEC.95888D33@lbl.gov>, Tobias Funk 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? Yes, you probably want LIB$SPAWN. Look it up in the Run-time Library reference manual, or the online help as HELP RTL LIB$ LIB$SPAWN. There are a number of differences between unix and VMS, so the above may or may not work as you expect. But that's the starting point. Note that VMS questions are usually better asked on comp.os.vms. -Ken -- Kenneth H. Fairfield | Internet: Fairfield@SLC.Slac.Stanford.Edu SLAC, 2575 Sand Hill Rd, MS 46 | Voice: 650-926-2924 Menlo Park, CA 94025 | FAX: 650-926-3515 ----------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...