[Info-vax] how to write openvms commands in .sh file through openvms

Johnny Billquist bqt at softjar.se
Thu Feb 28 15:16:40 EST 2013


On 2013-02-28 19:42, Bill Gunshannon wrote:
> In article <kgo56t$bok$1 at dont-email.me>,
> 	Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> writes:
>> On 2013-02-28, David Froble <davef at tsoft-inc.com> wrote:
>>> Simon Clubley wrote:
>>>>
>>>> One answer could be to transfer a command procedure to the target system
>>>> and have the command procedure write any output to a file which can then
>>>> be transferred back to the initiating machine. The command procedure
>>>> could then be triggered from the initiating system using ssh.
>>>>
>>>
>>> You mean .... like .... BATCH ??
>>
>> No.
>>
>> Where is the VMS API which would allow you to submit a batch job directly
>> from a Unix box without having to log into the VMS box interactively first ?
>
> Now there's a good question.  was there ever a standard Remote Batch
> Protocol or did everyone just roll their own?  Did VMS ever support
> Remote batch from any other susyems (IBM? Univac? even PDP-11!!)

Sure. You can submit batchjobs on remote DECnet machines.
I don't remember the syntax under VMS, but under RSX you basically do:

NFT node::filename/SB (MCR)
SUB node::filename/REMOTE (DCL)

Note that the filename needs to be on the remote machine. If you want to 
submit a batch job where the file is on you local machine, you should 
transfer the file first, and then submit it on the remote machine.

As for doing it from Unix, I guess that depends on whether you Unix 
system have DECnet.

>> The closest you are going to get to running commands remotely on a standard
>> VMS system is to use the ability of ssh (assuming both initiating and target
>> TCP/IP stacks support it) to run a command directly without needing a full
>> interactive session.
>
> I see this suggested often for various systems, but it really isn't
> "batch" it's just a normal job run in the background without any user
> interaction.  I am assuming that VMS did at one time (and maybe still
> does) support real BATCH QUEUES.  Yes?

Yes.

	Johnny




More information about the Info-vax mailing list