• Executing SEXYZ from Javascript

    From High Spirit@VERT/DCBBS to All on Tue Mar 21 18:57:10 2017
    Hey All,ããHaving a little problem with SEXYZ being executed from a Javascript file... ããI looked at SEXYZ command line settings in SCFG and working from that:ãã%!sexyz%. %h -%p sz @%f%!sexyz%. %h -%p sz @%fããafter changing the values (running on *nix):ãã%! = /sbbs/exec/ã%. = ã%h = client.socket.descriptorã%p = client.protocolã%f = <FILE WITH LIST OF FILES TO TRANSFER>ããso my command is:ãã/sbbs/exec/sexyz 39 -Telnet sz @/sbbs/node1/filelist.txt ããClient is running SyncTerm and when the command executes, the download screenãin SyncTERM pops up and will *ATTEMPT* to auto download the files. Sometimes Iãsee the filenames of the files it is trying to send, but most of the times Iãsee timeouts. I hit ESCape to abort and it trys to send the next file... againãsometimes I see the filename, sometimes not, but the transfer fails...ããAnyone have thoughts? Am I missing something?ãã-- High Spiritãã---ã þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323ã
  • From Digital Man@VERT to High Spirit on Tue Mar 21 18:43:09 2017
    Re: Executing SEXYZ from Javascriptã By: High Spirit to All on Tue Mar 21 2017 06:57 pmãã > Hey All,ã >ã > Having a little problem with SEXYZ being executed from a Javascript file...ã >ã > I looked at SEXYZ command line settings in SCFG and working from that:ã >ã > %!sexyz%. %h -%p sz @%f%!sexyz%. %h -%p sz @%fã >ã > after changing the values (running on *nix):ã >ã > %! = /sbbs/exec/ã > %. =ã > %h = client.socket.descriptorã > %p = client.protocolã > %f = <FILE WITH LIST OF FILES TO TRANSFER>ã >ã > so my command is:ã >ã > /sbbs/exec/sexyz 39 -Telnet sz @/sbbs/node1/filelist.txtããAnd how are you executing that command from JavaScript?ãã > Client is running SyncTerm and when the command executes, the downloadã > screen in SyncTERM pops up and will *ATTEMPT* to auto download the files.ã > Sometimes I see the filenames of the files it is trying to send, but most ofã > the times I see timeouts. I hit ESCape to abort and it trys to send the nextã > file... again sometimes I see the filename, sometimes not, but the transferã > fails...ã >ã > Anyone have thoughts? Am I missing something?ããThe correct way to initiate a download (send a file) using JavaScript is withãthe bbs.send_file() function (see http://synchro.net/docs/jsobjs.html forãdetails). It possible you could setup the sexyz command-line and execute itãcorrectly from Synchronet, but it's not the "proper" way to achieve this.ãã digital manããSynchronet "Real Fact" #49:ãSynchronet program was named 'sbbs' instead of 'sync' to avoid conflict w/Unix.ãNorco, CA WX: 56.9øF, 93.0% humidity, 0 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From High Spirit@VERT/DCBBS to Digital Man on Tue Mar 21 22:08:54 2017
    Re: Executing SEXYZ from Javascriptã By: Digital Man to High Spirit on Tue Mar 21 2017 06:43 pmãã DM> And how are you executing that command from JavaScript?ããUsing the system.exec() command.ãã DM> The correct way to initiate a download (send a file) using JavaScript isã DM> with the bbs.send_file() function (see http://synchro.net/docs/jsobjs.htmlã DM> for details). It possible you could setup the sexyz command-line andã DM> execute it correctly from Synchronet, but it's not the "proper" way toã DM> achieve this. ããI tried that, but I do not want the prompt to "Hang up after transfer?" and itãdoes not handle batch transfers that I could see.ãã-- High Spiritãã---ã þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323ã
  • From Digital Man@VERT to High Spirit on Wed Mar 22 11:17:08 2017
    Re: Executing SEXYZ from Javascriptã By: High Spirit to Digital Man on Tue Mar 21 2017 10:08 pmãã > Re: Executing SEXYZ from Javascriptã > By: Digital Man to High Spirit on Tue Mar 21 2017 06:43 pmã >ã > DM> And how are you executing that command from JavaScript?ã >ã > Using the system.exec() command.ããI wouldn't expect that to work. Firstly, with Telnet, the session must be putãinto "binary mode" (for both directions). You could possibly use theãconsole.telnet_cmd() function to do this:ã var telnet = load(new Object, "telnet_lib.js");ã console.telnet_cmd(telnet.DO, 0);ã console.telnet_cmd(telnet.WILL, 0);ãã0 is the "binary tx" telnet command.ããAlso, that method will definitely not work with SSH (but it might with RLogin).ãã > DM> The correct way to initiate a download (send a file) using JavaScriptã > DM> is with the bbs.send_file() function (seeã > DM> http://synchro.net/docs/jsobjs.html for details). It possible you couldã > DM> setup the sexyz command-line and execute it correctly from Synchronet,ã > DM> but it's not the "proper" way to achieve this.ã >ã > I tried that, but I do not want the prompt to "Hang up after transfer?" andã > it does not handle batch transfers that I could see.ããDid you try using bbs.batch_add_list() and bbs.batch_download()?ãã digital manããSynchronet/BBS Terminology Definition #4:ãBBS = Bulletin Board SystemãNorco, CA WX: 61.4øF, 82.0% humidity, 6 mph E wind, 0.09 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From High Spirit@VERT/DCBBS to Digital Man on Wed Mar 22 17:30:14 2017
    Re: RE: Executing SEXYZ from Javascriptã By: Digital Man to High Spirit on Wed Mar 22 2017 11:17 amãã is> I wouldn't expect that to work. Firstly, with Telnet, the session must beã is> put into "binary mode" (for both directions). You could possibly use theã is> console.telnet_cmd() function to do this:ã is> var telnet = load(new Object, "telnet_lib.js");ã is> console.telnet_cmd(telnet.DO, 0);ã is> console.telnet_cmd(telnet.WILL, 0);ã is> 0 is the "binary tx" telnet command.ã is> Also, that method will definitely not work with SSH (but it might withã is> RLogin). ããInteresting! Good to know.ãã is> Did you try using bbs.batch_add_list() and bbs.batch_download()?ããNow that you mention it, I do remember these commands and probably forgot allãabout them... code at work, code at home... I need a vacation. ;)ãã-- High Spirit Digital Creation BBS - bbs.digitalcreationbbs.comãã---ã þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:23ã