Execute a Shell Command
Sometimes in a web application, you may need to execute a system command. Some
users also use Myna in conjunction with Winstone for a small footprint
administration server. This way administration tasks can be can be written
shellCommand should be the command shell such as "bash" on Linux.
script is your string of commands.
waitForOutput defaults to true. If true, the script will wait for the returned output.
<% var object = Myna.executeShell('bash','scp -r /home/myna1 /home/myna2'); %> <%=object.output%><br>