Article View: vmsnet.misc
Article #313Re: How to run a C program taking command line arguments on VMS
From: Ulli Horlacher
Date: Thu, 07 Mar 1996 16:13
Date: Thu, 07 Mar 1996 16:13
39 lines
2147 bytes
2147 bytes
On Mon, 04 Mar 1996 11:00:28 -0600, David Bratton (DBratton@uh.edu) wrote:
>
> As of VMS 6.2 you have another option. You can define the logical
> DCL$PATH to point to the directory containing the executable.
Does this also work with lists of directories?
$ define dcl$path sys$login,d1:[tools.exe],[]
This is a missing feature of VMS since version 1.0 :-)
BTW, for those without V6.2, I have written long time ago a
path-execution-emulation program called X.COM
From the help:
X means eXecute: execute a program, which can be found in a directory-
searchlist, as defined by the global DCL-symbol PATH.
The program can be a VMS-image (type *.EXE) or a DCL-commandfile (type
*.COM).
Wildcards * and % are allowed as well as optionally passed parameters.
Examples: $ X LOGIN ! does a @SYS$LOGIN:LOGIN.COM
$ X UUF* BLUB.BLAH BLUB.UUE ! starts the image UUFIX.EXE and
! passes 2 parameters
You can extend the search-path with: PATH==PATH+",<DIRECTORY>"
Logicals are ok, too. eg: PATH==PATH+",DD1:[FRAMSTAG.TOOLS],SYS$SCRATCH"
If you are interested in this program, send me a mail.
--
\ Ulli Horlacher \ G=ulli;S=horlacher;OU=rus;P=uni-stuttgart;A=d400;C=de \
\ Königsbergerstr 6 \ framstag@moep.bb.bawue.de \ ccc_horl@dulruu51.bitnet \
\ 71065 Sindelfingen \ germany!framstag \ psi%026245050260103::8::ccc_horl \
\ "Noch keine 30 und schon an die Nachwelt denken..." - Kristian Köhntopp \
Technical Details
Message-ID:
<4hn1vk$1hc@syssrv.bb.bawue.de>Path:
arc1-ca.pugleaf.net!syssrv.bb.bawue.de!framstagReferences:
<4h1u5d$s5c@news.fsu.edu> <4h72pe$fce@news.fsu.edu> <313B21AC.45F5@uh.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!syssrv.bb.bawue.de!framstag From: framstag@moep.bb.bawue.de (Ulli Horlacher) Newsgroups: vmsnet.misc,comp.lang.c Subject: Re: How to run a C program taking command line arguments on VMS Date: 7 Mar 1996 16:13:40 GMT Organization: Nugget Town: Computers, Networks and Women Message-ID: <4hn1vk$1hc@syssrv.bb.bawue.de> References: <4h1u5d$s5c@news.fsu.edu> <4h72pe$fce@news.fsu.edu> <313B21AC.45F5@uh.edu> NNTP-Posting-Host: moep.bb.bawue.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: slrn (0.8.6.1)