Hello Digital Man,
What would the *correct* way be to run nano from a javascript?
I've tried..
system.exec("/usr/bin/nano");
bbs.exec("/usr/bin/nano",mode=EX_NATIVE);
..and neither of them seem to work. Synchronet runs as root so permissions are n
ot an issue.
If it isn't possible, or shouldn't be done, then I was wondering if some kind of
stacking could be done in the "External Editor" section. Say if you used the sa
me internal code for two External Editor entries, it would run the first one, th
en the second?
I'm trying to run a javascript (which tinkers with /sbbs/node?/MSGTMP) before na
no loads, but during the same process. And while the script seems to work fine w
hen NOT trying to load nano in it (it rewrites MSGTMP and posts the reply, but w
ithout nano able to load, the reply is unable to be edited), and nano will load
from the External Editors menu by itself, I'd like to do both in one shot if at
all possible.
Regards,
Nick
--- GoldED+/LNX 1.1.5-b20160201
■ Synchronet ■ thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
|