Subj : capturing tool output
To : Rampage
From : Digital Man
Date : Thu Jan 03 2019 12:07 pm
Re: capturing tool output
By: Rampage to All on Thu Jan 03 2019 01:44 pm
> how can i capture the output of a tool like addfiles when it is executed
> from a javascript via the event subsystem?
On *nix-like systems, you can use system.popen() to execute a command-line and
capture its output.
> we can see the output when we run the javascript via jsexec and it runs fine
> from there... we get a return value of 0 (zero)... if it is run from an
> event, though, the addfiles execution return value is 1 (one) and we cannot
> see the output of addfiles so we can see what the problem is that is causing
> it to fail...
You could also add ">somefile" to the end of the command-line to redirect the
output to a file to be read/reviewed later.
> we are running at LogLevel=Debugging... is there a more detailed level that
> would show us that output?
No.
digital man
Synchronet/BBS Terminology Definition #15:
CVS = Concurrent Versioning System
Norco, CA WX: 65.0�F, 21.0% humidity, 1 mph W wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net