🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.misc
Article #310

Re: How to run a C program taking command line arguments on VMS

#310
From: yom
Date: Thu, 29 Feb 1996 02:50
36 lines
1205 bytes
It's been a long time since I've been on a VMS machine, but I think
you have to assign a global symbol for your executable:

$ foo :== $usr:[bar]foo.exe


Song (yom@clark.net)

In article <4h1u5d$s5c@news.fsu.edu>, meil@firnvx.firn.edu says...
>
>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!
>
>My program is like:
>
>/* myprog.c */
>  
>  main(argn, **argv)
>  {
>  
>     ...
>
>  }
>
>If run on Unix or DOS, I could type something like
>
>  myprog -lu abcd
>
>How to run it on VMS?
>
>I'd appreciate your help!
>
Technical Details
Message-ID: <4h34a0$6g0@clarknet.clark.net>
Path: arc1-ca.pugleaf.net!news.clark.net!usenet
References: <4h1u5d$s5c@news.fsu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.clark.net!usenet
From: yom@clark.net (yom)
Newsgroups: vmsnet.misc,comp.lang.c
Subject: Re: How to run a C program taking command line arguments on VMS
Date: 29 Feb 1996 02:50:40 GMT
Organization: Clark Internet Services, Inc.
Message-ID: <4h34a0$6g0@clarknet.clark.net>
References: <4h1u5d$s5c@news.fsu.edu>
NNTP-Posting-Host: yom.clark.net
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.7