Subj : Re: More dumb questions
To : echicken
From : Mortifis
Date : Fri Jul 19 2019 01:08 pm
> Re: More dumb questions
> By: Mortifis to All on Fri Jul 19 2019 11:18:34
> Mo> When scripting a commandline utility, console.clear() and other
> Mo> console.* functions are 'undefined' Is there a load(*.js) I need to
> Mo> call at the start of the script to has access to those functions or are
> Mo> they hard coded in sbbs?
> 'console' only exists in scripts running in the 'bbs' context, ie. under a
> telnet/rlogin/ssh session.
> Its methods are strictly for interacting with a remote terminal and they
> aren't relevant under jsexec,
> the webserver, or other places where Synchronet runs JS.
> There are ways to deal with running scripts either under jsexec or in a BBS
> session (you seemed to have
> the idea of doing 'if (js.global.console)').
Ya, I see that now, I found conio.clrscr; and conio.suspend which does what I
needed.
> Sometimes it's just easier to
> pick one or the other. This
> script in particular (generating a report about dupe users) seems like a
> utility I'd just want to run
> under jsexec and I wouldn't need to run during an ssh session.
I was following the premise under mailall.js LOL but, with your help, I am
slowly seeing the error or my ways :-)
The script has already grown beyond an FYI script and is has menu options
Thanks, EC
My teachers always said "You can't make a living looking out a window!", they
were wrong, I drive truck :-P
---
� Synchronet � AlleyCat! BBS -
http://alleycat.synchro.net:81