Difference between revisions of "PIPETOSTR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
m (Text replace - "Recital" to "Lianja") |
||
Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | // Return information about user | + | // Return information about user Lianja process |
? pipetostr("ps -ef | grep db.exe | grep "+user()) | ? pipetostr("ps -ef | grep db.exe | grep "+user()) | ||
</code> | </code> |
Revision as of 05:45, 8 December 2012
Contents
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 Lianja process ? pipetostr("ps -ef | grep db.exe | grep "+user())