Difference between revisions of "PIPETOSTR()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Return the output from (optionally piped) Linux commands
 
Return the output from (optionally piped) Linux commands
 
  
 
==Syntax==
 
==Syntax==
 
PIPETOSTR(<expC>)
 
PIPETOSTR(<expC>)
 
  
 
==See Also==
 
==See Also==
[[!]], [[!!]], [[ALIAS]], [[DO]], [[RUN]], [[SPAWN]], [[EXEC()]], [[GETENV()]], [[PUTENV()]], [[SET RUNCLEAR]], [[SET RUNWAIT]], [[DB_RUNLOG]]
+
[[DO]], [[RUN]], [[SPAWN]], [[EXEC()]], [[GETENV()]], [[PUTENV()]]
 
+
  
 
==Description==
 
==Description==
 
The PIPETOSTR() function runs the Linux operating system command specified in <expC> and returns the output as a character string.  The specified operating system command may contain pipes (|).
 
The PIPETOSTR() function runs the Linux operating system command specified in <expC> and returns the output as a character string.  The specified operating system command may contain pipes (|).
 
  
 
==Example==
 
==Example==
Line 21: Line 17:
 
</code>
 
</code>
  
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 05:21, 10 February 2012

Purpose

Return the output from (optionally piped) Linux commands

Syntax

PIPETOSTR(<expC>)

See Also

DO, RUN, SPAWN, EXEC(), GETENV(), PUTENV()

Description

The PIPETOSTR() function runs the Linux operating system command specified in <expC> and returns the output as a character string. The specified operating system command may contain pipes (|).

Example

// Return information about user Recital process
? pipetostr("ps -ef | grep db.exe | grep "+user())