Author Topic: Return StdOutput to browser?  (Read 110 times)

0 Members and 1 Guest are viewing this topic.

Offline Grovkillen

  • Occasional poster
  • *
  • Posts: 7
    • View Profile
Return StdOutput to browser?
« 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.

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1911
    • View Profile
Re: Return StdOutput to browser?
« Reply #1 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

Offline Grovkillen

  • Occasional poster
  • *
  • Posts: 7
    • View Profile
Re: Return StdOutput to browser?
« Reply #2 on: February 14, 2020, 08:54:01 PM »
Ah that's too bad. I was hoping for the actual output to be intercepted.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 13011
    • View Profile
Re: Return StdOutput to browser?
« Reply #3 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

Offline Grovkillen

  • Occasional poster
  • *
  • Posts: 7
    • View Profile
Re: Return StdOutput to browser?
« Reply #4 on: February 15, 2020, 04:18:30 AM »
Woohoo! Awesome!! Thanks for the feedback.