I know that one difference between system.exec() and bbs.exec() is that bbs.exec() can run Baja modules and JavaScript scripts and system.exec() is for running native programs, but it seems that bbs.exec() can run native programs as well (also, the EX_NATIVE flag can be used with bbs.exec() to specify that it's a native 32-bit application). So if you need to run a native program from a Synchronet JavaScript script, what's the difference between using bbs.exec() and system.exec(), and does it matter which one
you use?
The 'system' object is available in all Synchronet JS environments (jsexec, servers, servces), while 'bbs' is only available in the
Terminal Server (for telnet, Rlogin, SSH connections).
The bbs.exec() can be used to execute a native program with redirected input/output. system.exec() does not support redirected I/O.
If your script is intended for use in the terminal server, I would use bbs.exec().
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 111:14:17 |
Calls: | 374 |
Calls today: | 1 |
Files: | 2 |
Messages: | 38,881 |