SCRIPT
Command: #script {variable} {shell command}
The script command works much like the system command except that it
treats the generated echos as commands if no variable is provided.
This is useful for running php, perl, ruby, and python scripts. You
can run these scripts either from file or from within tintin if the
scripting language allows this.
If you provide a variable the output of the script is stored as a list.
Example: #script {ruby -e 'print "#show hello world"'}
Example: #script {python -c 'print "#show hello world"'}
Example: #script {php -r 'echo "#show hello world"'}
Example: #script {path} {pwd};#show The path is $path[1].
Related: format, function, local, math, replace and variable.
|