| Script |
 |
| Syntax: #script {variable} {shell commands} |
 |
| The script command allows you to execute commands in the shell. The output of these commands will be stored as a list in the given variable. The script command can be used to execute Lua, PHP, Perl, Python, Tcl, and Ruby scripts. |
 |
Example: #script {result} {lua -e 'print("Hello TinTin++")' |
Example: #script {result} {ruby -e 'print "Hello TinTin++"'} |
Example: #script {result} {python -c 'print "Hello TinTin++"'} |
Example: #script {result} {php -r 'echo "Hello TinTin++"'} |
Example: #script {result} {tcl -c 'puts "Hello TinTin++"'} |
| If no variable argument is given the script output will be treated as tintin input, allowing you to use #showme and #send commands to process the output of a script. Keep in mind you can also execute script files. |
 |
| Notice: You can also use the #run and #system commands to execute shell commands. |
 |