-
system.exec() vs. bbs.exec() for native command line program
From
Nightfox@VERT/DIGDIST to
All on Sun Oct 19 10:10:08 2014
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?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
-
From
Digital Man@VERT to
Nightfox on Fri Oct 24 17:14:40 2014
Re: system.exec() vs. bbs.exec() for native command line programã By: Nightfox to All on Sun Oct 19 2014 10:10 amãã > 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().ãã digital manããSynchronet "Real Fact" #43:ãSynchronet added JavaScript suppport with v3.10a (2001).ãNorco, CA WX: 83.7øF, 24.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Fri Oct 24 18:58:50 2014
Re: system.exec() vs. bbs.exec() for native command line programã By: Digital Man to Nightfox on Fri Oct 24 2014 17:14:40ãã DM> The 'system' object is available in all Synchronet JS environmentsã DM> (jsexec, servers, servces), while 'bbs' is only available in theã DM> Terminal Server (for telnet, Rlogin, SSH connections).ãã DM> The bbs.exec() can be used to execute a native program with redirected ã DM> input/output. system.exec() does not support redirected I/O.ãã DM> If your script is intended for use in the terminal server, I would use ã DM> bbs.exec().ããI see, thanks.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã