Re: Incresing command line length from max. 256?

From: <kneitz_at_mwk.com>
Date: 9 Aug 93 12:59:02 CST
Message-ID: <1993Aug9.125902.1555_at_mwk.com>


In article <1993Aug6.214257.11208_at_govonca.gov.on.ca>, murrays_at_govonca.gov.on.ca (Scott A. Murray) writes:
>
> (posted for a co-worker)
>
> Is it possible to increase the VMS command line size? We have an Oracle
> application that is 'shelling out' to VMS to run another Oracle application
> (we have our reasons). The problem is that VMS can only accept a maximum of
> 256 characters on the command line. We need to pass parameters on the
> command line that far exceed this limit. Is there a way to do this? Either
> by somehow increasing VMSs command line limit, or some other way?
>
> Thanks for any information you can provide.
>
> Scott
> --

Well, the only fix I've seen is to define several symbols with each piece of the command and then reference them. Even DEC does this in their DecWindows compiler interfaces. I.e.:

$ PART1 = "Some long string..."
$ PART2 = "Another long string..."
$ PART3 = "Yet another long string..."
$ Command 'part1' 'part2' 'part3'

This will get you up to ~1200 bytes (I think). Of course the symbols can be defined using LIB$SET_SYMBOL and the actual command with the 'sybmol' substitution requests can be passed to LIB$SPAWN.

Hope this helps,

John W. Kneitz --> kneitz_at_mwk.com
The M. W. Kellogg Company
Houston, Texas Received on Mon Aug 09 1993 - 20:59:02 CEST

Original text of this message