Subj : Re: capturing tool output
To : Digital Man
From : Rampage
Date : Thu Jan 03 2019 05:15 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.
hummm... the problematic system is running winwhatever...
>> 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.
ahh! i'll give that a try...
>> we are running at LogLevel=Debugging... is there a more detailed
>> level that would show us that output?
> No.
thanks!
)\/(ark
---
� Synchronet � SouthEast Star Mail HUB - SESTAR