FrontPage 

Tim's Space Wiki

Login

ExternalCmdExample Help

The ExternalCmdExample processor shows the result of using the 'ls' with the content of the block indicating some arguments.

Processor arguments:

  • cmd - can be 'ls', 'bc', 'tr', or 'cat';, default is 'ls'
  • long (optional) - do 'ls -l'

Example usage:

{{{#!ExternalCmdExample
cmd=ls
long=1
}} }

{{{#!ExternalCmdExample
cmd=bc
----
6.2 * 3
}} }

{{{#!ExternalCmdExample
cmd=cat
----
This data goes into a temp file, that is cat'ed back out.
}} }

{{{#!ExternalCmdExample
cmd=tr
str1=a-z
str2=A-Z
----
This will be made into all upper-case (SHOUTING)
(using piping, instead of a temp file
}} }

Back to page: System_Info

TBWiki engine 2.0.1 by Tim Bird