Request: Shell Execute get STDOUT

For general discussion related FlowStone
Post Reply
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Request: Shell Execute get STDOUT

Post 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.
rlr
Posts: 27
Joined: Tue Jul 13, 2010 9:17 pm

Re: Request: Shell Execute get STDOUT

Post 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
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Request: Shell Execute get STDOUT

Post 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.
Post Reply