Pow exec

From PlainOldWebserver

Jump to: navigation, search

Back to Top


pow_exec(file, args, blocking)

Executes a shell command on DOS, bash or your native shell. The file to run uses the Firefox profile directory as its root. Its running directory is the OS root ("/" in Unix). Standard out is printed in the console. Argument 1 is the file to run. Argument 2 is an array of arguments.

<?sjs
                var argv = new Array("one");
                var blocking = false;
                pow_exec("/pow/htdocs/runme.sh", argv, blocking);
?>

See also

Personal tools
Navigation