Subj : First World Problems. To : Accession From : Digital Man Date : Thu Mar 03 2016 06:21 pm Re: First World Problems. By: Accession to Digital Man on Thu Mar 03 2016 05:01 pm > 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 not an issue. Both of these will execute "/usr/bin/nano". But if you want the input/output to be intercepted and sent to the remote user, you'll need use either bbs.exec() with the EX_INR and EX_OUTR flags set (for input and output redirection), like so: bbs.exec("/usr/bin/nano", EX_NATIVE|EX_INR|EX_OUTR); But the best way to run an external editor is to configure it as an external editor (in SCFG) and run it from JS with console.editfile(filename); digital man Synchronet "Real Fact" #78: 172 Synchronet Match Maker registrations were sold (@$69) between 1995 and 1996. Norco, CA WX: 63.5øF, 70.0% humidity, 4 mph E wind, 0.00 inches rain/24hrs .