Liste des Groupes | Revenir à co vms |
On 5/11/2025 3:17 PM, Craig A. Berry wrote:On OpenVMS x86, Perl is part of the base install, so it's always there.On 5/9/25 11:32 PM, David Meyer wrote:It's probably easy to do in a lot of scripting languages.I found that one way to do it is to put all the processing that uses the>
command output inside subshells in the same PIPE command.
>
One shortcoming of this method is that it's very easy to go over the
maximum command element length allowed inside the PIPE. For my
procedure, I was able to get around this by choosing lexical functions
to minimize the length of the PIPE command.
>
Any other way to do this?
It's pretty easy with Perl:
>
$ perl -"MVMS::DCLsym" -e "$x=`show time`; VMS::DCLsym-setsym('mysym', $x, 'GLOBAL');"$ SHOW SYMBOL mysym
MYSYM == " 11-MAY-2025 14:10:89."
>
But the original request specified DCL. Might be he
expects the script to have to run on machines that only
have VMS on them.
Les messages affichés proviennent d'usenet.