Article View: vmsnet.misc
Article #308Re: How to run a C program taking command line arguments on VMS
From: mmiller4
Date: Fri, 01 Mar 1996 12:31
Date: Fri, 01 Mar 1996 12:31
26 lines
1420 bytes
1420 bytes
In article <4h1u5d$s5c@news.fsu.edu>, meil@firnvx.firn.edu (Lynn Mei) writes:
>Could someone tell me how to run a C program which takes command line
>arguments on VAX/VMS? I have checked the FAQ about openVMS and tried the
>instructions. But I couldn't get it work. I don't have an openVMS mannual.
>Please help me!
>
>If run on Unix or DOS, I could type something like
>
> myprog -lu abcd
You need to define a "foreign command" in DCL. For example:
$ myprog == "$path:myprog.exe"
$ myprog -lu abcd
Note that VMS will convert the command line arguments to lowercase. To prevent
this from happening, surround the arguments you do not want converted with
double quotes ("ARGUMENT"). For example:
$ myprog -lu "abcd"
------------------------------------------------------------------------------
Michael G. Miller "Nobody rides for free!!!" -- RATT
Ford Motor Credit Company
mmiller4@fc.ford.com
-- Views are mine and not necessarily those of my employer. --
Technical Details
Message-ID:
<4h6qn8$glj@eccdb1.pms.ford.com>Path:
arc1-ca.pugleaf.net!mail.fc.ford.com!MMILLER4References:
<4h1u5d$s5c@news.fsu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail.fc.ford.com!MMILLER4 From: mmiller4@mail.fc.ford.com Newsgroups: vmsnet.misc,comp.lang.c Subject: Re: How to run a C program taking command line arguments on VMS Date: 1 Mar 1996 12:31:36 GMT Organization: Ford Credit Message-ID: <4h6qn8$glj@eccdb1.pms.ford.com> References: <4h1u5d$s5c@news.fsu.edu> Reply-To: mmiller4@mail.fc.ford.com NNTP-Posting-Host: 19.59.49.253