Establishing build environment during SSH connection

Here you can discuss the universal Integrated Development Environment for OpenVMS
Post Reply

Topic author
brianreiter
Contributor
Posts: 15
Joined: Fri Jun 14, 2019 4:17 pm
Reputation: 0
Status: Offline

Establishing build environment during SSH connection

Post by brianreiter » Mon Sep 30, 2019 7:40 am

Hi Folks,

Is it possible to to run a specific command as part of the SSH connection. Essentially to run a DCL procedure to establish the various logical names required by the build environment? I know this could be embedded into LOGIN.COM but having the information in the project definition would hopefully make things easier.

Engineers work on a number of projects and may also work different versions of a given project, anything we can do to keep things simple would be good.

cheers

Brian


puder
VSI Expert
Visitor
Posts: 2
Joined: Thu Aug 29, 2019 1:44 pm
Reputation: 0
Status: Offline

Re: Establishing build environment during SSH connection

Post by puder » Mon Sep 30, 2019 5:58 pm

At first, I would create a command file for every common thing I want to do, where each starts with a setup of the environment, then does the desired action.
SFTP the files over, then you can SSH REMOTESYS "@DEVCMD"

Later I realized that one can parameterize and generalize the above and instead of one command file for each action in each environment, have just one command file like the following for each environment.

sys$login:dev_do.com:

Code: Select all

$! Do a command in the dev environment.
$ set default dev_disk:[my.dev.area]
$ @dev_setup
$ 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ exit $status
Then on the client system,

Code: Select all

$ ssh vmsdevsys "@DEV_DO cms show element foo.bar"

Post Reply