Difference between revisions of "PIPETOSTR()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
{{YLM to do}}
 
 
 
 
 
==Purpose==
 
==Purpose==
 
+
Return the output from (optionally piped) Linux commands
  
  
 
==Syntax==
 
==Syntax==
 
+
PIPETOSTR(<expC>)
  
  
 
==See Also==
 
==See Also==
 
+
[[!]], [[!!]], [[ALIAS]], [[DO]], [[RUN]], [[SPAWN]], [[EXEC()]], [[GETENV()]], [[PUTENV()]], [[SET RUNCLEAR]], [[SET RUNWAIT]], [[DB_RUNLOG]]
  
  
 
==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 (|).
  
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
+
// Return information about user Recital process
 +
? pipetostr("ps -ef | grep db.exe | grep "+user())
 
</code>
 
</code>
  
 
==Products==
 
==Products==
 
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 15:23, 5 November 2009

Purpose

Return the output from (optionally piped) Linux commands


Syntax

PIPETOSTR(<expC>)


See Also

!, !!, ALIAS, DO, RUN, SPAWN, EXEC(), GETENV(), PUTENV(), SET RUNCLEAR, SET RUNWAIT, DB_RUNLOG


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())

Products

Recital, Recital Server