rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Grovkillen on February 14, 2020, 07:37:35 PM

Title: Return StdOutput to browser?
Post by: Grovkillen on February 14, 2020, 07:37:35 PM
Is it possible to return the value from the output when triggering a exe?

What I mean is the StdOutput which you see when you run a exe in the command line.
Title: Re: Return StdOutput to browser?
Post by: Mars on February 14, 2020, 08:13:08 PM
in this situation, the only information that is returned by an exe is a program exit code used mainly as an error code. this code can be interpreted differently depending on the needs of the program

follow this link

http://rejetto.com/forum/index.php?topic=13197.msg1064986#msg1064986
Title: Re: Return StdOutput to browser?
Post by: Grovkillen on February 14, 2020, 08:54:01 PM
Ah that's too bad. I was hoping for the actual output to be intercepted.
Title: Re: Return StdOutput to browser?
Post by: rejetto on February 14, 2020, 09:07:11 PM
it is possible.
Use the "out" parameter of "exec" command
https://www.rejetto.com/wiki/index.php?title=HFS:_scripting_commands
Title: Re: Return StdOutput to browser?
Post by: Grovkillen on February 15, 2020, 04:18:30 AM
Woohoo! Awesome!! Thanks for the feedback.