samples/exec.js

changeset 1405
98b090e45df3
parent 1403
b39a918a34a4
child 1819
5e1012e665bf
equal deleted inserted replaced
1404:271aceb4b3f0 1405:98b090e45df3
44 $EXEC("ls", "" /* no stdin */, ["-l", "-a"]) 44 $EXEC("ls", "" /* no stdin */, ["-l", "-a"])
45 45
46 // Output of running external commands is returned from $EXEC: 46 // Output of running external commands is returned from $EXEC:
47 print($EXEC("ls")) 47 print($EXEC("ls"))
48 48
49 // apply on $EXEC
50 print($EXEC.apply(this, ["ls"]));

mercurial