🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.misc
Article #307

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

#307
From: Greg Thomas
Date: Fri, 01 Mar 1996 09:54
27 lines
1318 bytes
Lynn Mei wrote:
> 
> 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:...
> If run on Unix or DOS, I could type something like
>   myprog -lu abcd
> How to run it on VMS?

Because the VMS 'RUN' command takes VMS based argments, you need to 
set up a foreign symbol:
  $ myprog == "$DISK:[DIRECTORY]MY_PROG.EXE"
then just use 
  $ myprog -lu abcd
as you do on DOS/UNIX. This is detailed fairly clearly in the FAQ.

-- 
Greg Thomas
---
Tel (01473) 224832
Fax (01473) 233319
---
Any opinions expressed are mine, not necessarily those of the company 
I work for.
Technical Details
Message-ID: <3136C942.1198@btla1.te.bt.co.uk>
Path: arc1-ca.pugleaf.net!lade.news.pipex.net!pipex!bt!usenet
References: <4h1u5d$s5c@news.fsu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!lade.news.pipex.net!pipex!bt!usenet
From: Greg Thomas <thomasgd@btla1.te.bt.co.uk>
Newsgroups: vmsnet.misc,comp.lang.c
Subject: Re: How to run a C program taking command line arguments on VMS
Date: Fri, 01 Mar 1996 09:54:10 +0000
Organization: BT
Message-ID: <3136C942.1198@btla1.te.bt.co.uk>
References: <4h1u5d$s5c@news.fsu.edu>
NNTP-Posting-Host: pc3716.svh.bt.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (Win16; I)