Page 1 of 1

Request: Shell Execute get STDOUT

Posted: Thu Apr 18, 2013 2:10 pm
by Tronic
I wish that the original Execute Shell primitive had a chance to take the results from STDOUT and STDERR,
of any application running externally.

becouse I tried to get this with the ruby, but seems to be no solution, :cry:
it seems that the RubyEdit does not have the connection with the internal $stdout or STDOUT,
​​and other oddities in the execution of functions prefect working with a normal ruby installation.


Ruby embedded :?
Solutions?

Thx, hoping in 'attention of the developer.

Re: Request: Shell Execute get STDOUT

Posted: Fri Apr 19, 2013 2:47 pm
by rlr
you could ShellExecute 'cmd /c MyScript.cmd'
and in MyScript.cmd:
MyOtherScript.cmd > stdout.txt 2> stderr.txt

http://support.microsoft.com/kb/110930/en-us

Re: Request: Shell Execute get STDOUT

Posted: Fri Apr 19, 2013 8:18 pm
by Tronic
hehe, this one is known to me,
but it is not an effective solution,
too many disk accesses to read and write for what I would do, no workaround, but simple pipe connection.
Anyway thank you.
the request remains open.