Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Does the Pipe command work on all versions and platforms?

 
SOLVED
Go to solution
Vineet Deshpande
Frequent Advisor

Does the Pipe command work on all versions and platforms?

Hi,

I wanted to know if the PIPE command works on all platforms and versions of OpenVMS?

Are there any versions where Pipe doesn't work? Basically I am interested in sequential command execution. Is there any documentation which will tell me if PIPE works on some platforms and not on others?

The reason for this is that in my code I have used it to run commands and wanted to know if it will work on all the platforms and versions.

Please help.

Thanks,

Vineet
10 REPLIES 10
Steven Schweda
Honored Contributor
Solution

Re: Does the Pipe command work on all versions and platforms?

No. A Google search for:
vms OR openvms pipe "new features"
found, among other things:

http://pupgg.princeton.edu/cdrom12/html/ssb71/6480/6480p.htm

2.1.1 PIPE Command

OpenVMS Version 7.1 introduces some popular UNIX command shell processing functions. [...]

> Please help.

Please try harder.
Hein van den Heuvel
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

The PIPE command was introduced for OpenVMS V7.1

It is available and believed to work on that and later version. VAX, Alpha and I64.

>> Basically I am interested in sequential command execution.

Please explain what that means.

TO me sequential execution means execute 1, then execute 2 and so on. A basic command file will do thsi for individual commands and a batch queue (with job-limits or SYNC commands) can be used to sequentially execute larger 'jobs'.


>> The reason for this is that in my code I have used it to run commands and wanted to know if it will work on all the platforms and versions.


It should. Do yo have any reason to doubt? Then please elaborate with concrete commands and (error) messages which perhaps prompted the question.

hth,
Hein.

Vineet Deshpande
Frequent Advisor

Re: Does the Pipe command work on all versions and platforms?

Basically the command I am running is:-

PIPE write sys$output "" ; ; write sys$output ""

I am interested in parsing the output of and hence require the delimiter strings.

Right now I haven't faced any problems with the PIPE command but that maybe because the versions on which I have tested are above v7.0.

I want to know whether I will have problems if I execute this command on an earlier version of OpenVMS.

Thanks,

Vineet
Steven Schweda
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

> I want to know whether I will have problems
> if I execute this command on an earlier
> version of OpenVMS.

Well, duh. It was a NEW FEATURE in V7.1. Do
you think it will work in older versions? (I
don't.)

What would be different if you did this
instead?:

write sys$output ""

write sys$output ""

I see no compelling reason to use PIPE here.
Steven Schweda
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

Which part of "No" wasn't clear?
labadie_1
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

>>>I want to know whether I will have problems if I execute this command on an earlier version of OpenVMS.

I guess you will have the same error message I get when I type something which is not a Vms command defined in sys$common:[syslib]dcltables.exe, example

$ uiuiuiui
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\UIUIUIUI\

You should get VERB from
http://vms.tuwien.ac.at/freeware/VERB/

and "play" with it.
Vineet Deshpande
Frequent Advisor

Re: Does the Pipe command work on all versions and platforms?

Hi,

I did try the method:-

write sys$output
command
write sys$output

but was having some problems which were solved by the Pipe command. But I guess if I want to implement a more generic approach I will have to revert back to the old method.

Anyways thanks to all for your answers.

- Vineet
Hoff
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

I'm going to make a number of assumptions and guesses around what application requirement you are intending to solve here.

The usual approaches are:

$ cmd/OUTPUT
$ @mumble /OUTPUT
$ CALL /OUTPUT
$ @TT: /OUTPUT
$ SUBMIT (with or without EXECSYMB)

Applications can also internally contain tools for logging or redirection, or can be extended to contain these capabilities.

And then (and least desirably) you get to I/O redirection using SYS$OUTOUT: or related; /USER is better than not.

$ DEFINE /USER
$ DEFINE

where I/O redirection tends not to work as someone familiar with pipes might expect or might want.

I'd suggest reading the Writing Real Programs in DCL book (2nd ed) book Paul and I wrote a while back, though that's out of print.
Steven Schweda
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

> I did try the method:-
> [...]
> but was having some problems [...]

My psychic powers are too weak to tell me
what "command" was, or what "some problems"
were, so it's hard to say if PIPE was the
best way to solve them. If you'd like some
actual advice, provide some actual
information.
Hoff
Honored Contributor

Re: Does the Pipe command work on all versions and platforms?

Based on recent postings, the goal here appears to be to build and to present a management interface. The approach used appears to be willing to use unsupported (and subject to change) means (parsing DCL command output) to generate the necessary data for the UI.

I'm somewhat surprised that DCL itself is used here; I'd tend to expect either a dedicated probe application image or the use of SNMP. (Or both.)

One other thing I forgot to mention over in that other UI (workstation versus server icon) thread: these system management tools are a gigantic and very juicy security target for hackers.