[Info-vax] Command Procedure Pipe output to a variable

Jim mckinneyj at leidos.com
Tue Aug 31 13:00:02 EDT 2021


On Tuesday, August 31, 2021 at 12:26:39 PM UTC-4, cao... at pitbulluk.org wrote:
> On Tuesday, August 31, 2021 at 4:50:03 PM UTC+1, MG wrote: 
> > On 31-Aug-2021 14:11, Jim wrote: 
> > > Maybe pass the value of the SEARCH output back to the parent process using a job logical name... 
> > > 
> > > $ pipe/nosymbol/nological - 
> > > show process YYYYYY | - 
> > > search sys$pipe "Devices allocated:" | - 
> > > ( read sys$pipe x ; define/job x &x ) 
> > > $ device_aux = f$element(1,":",f$edit(f$trnlnm("x","lnm$job"),"collapse")) 
> > > $ deassign/job x 
> > > $ show symbol device_aux 
> > Interesting workaround. 
> > 
> > - MG
> Chances are though, you will still only get a node$MPAx: device back because it'll be the first listed after 'Devices allocated:' thanks to the PIPE command

True if process YYYYYY is the process executing the commands... but. presumably it is not as the OP would not likely have included the process name on the SHOW PROCESS command if target was self.



More information about the Info-vax mailing list