[Info-vax] how to write openvms commands in .sh file through openvms
David Froble
davef at tsoft-inc.com
Thu Feb 28 12:32:25 EST 2013
Simon Clubley wrote:
> On 2013-02-28, Mike R. <mike at rechtman.com> wrote:
>> On 28-Feb-13 10:45, kevinparker124 at gmail.com wrote:
>>> On Thursday, 28 February 2013 13:19:26 UTC+5:30, Hans Vlems wrote:
>>>> On 28 feb, 08:24, kevinparker... at gmail.com wrote:
>>>>
>>>>> Hi friends,
>>>>>
>>>>> I have couple of openvms commands which i have to run through openvms by using .sh file...means all the commands i have to put it into that .sh file.
>>>>>
>>>>> please help.
>>>>>
>>>>> Thanks..!
>>>> In VMS, what is an .sh file?
>>>>
>>>> Hans
>>> a shell script file (for example: xyz.sh)
>>>
>> go to
>> http://www.openvms.compaq.com/doc/73final/6489/6489pro_index.html#index_c
>> (fix the URL, if it wraps)
>> and look for "Command procedures"
>>
>
> The OP's question is unclear. Is he wanting to run commands within a command
> procedure while interactively logged into a VMS system, which is your
> assumption here, or is he really wanting to run commands on a target VMS
> system from a shell script running on another (non-VMS) system ?
>
> Given some of his previous postings, I suspect the latter may actually be
> the case. The obvious candidate in that case is to use ssh to issue a command
> (assuming both TCP/IP stacks support it), but since that's a really obvious
> option, I suspect there are things we are not been told.
>
> For example:
>
> Does he need to maintain state between commands ?
>
> Does he need to process the output from the commands ?
>
> 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.
>
> Simon.
>
You mean .... like .... BATCH ??
More information about the Info-vax
mailing list