Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to assign an OS command execution to a variable ?

Status
Not open for further replies.

pjbr34

Technical User
Aug 8, 2005
3
ES
Hi, I am trying to learn how to assign the result of an Operating system command into a rexx variable.

E.g. I want to assign the result of the Linux command "whoami" to the variable quiensoy.

So far under VM I could use CMS pipelines in such commands as for example:

/**/
'pipe cp q cpuid | var vari'
say vari
* * * End of File * * *

But I can't find a way to achieve this in OOREXX/Linux.
Any help will be welcome.

Thanks in advance

Jose R. Baron
CALCULO S.A.
Madrid, Spain
 

Code:
quiensoy = whoami()
?

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top