Page 1 of 1

Execute() enhancement

Posted: Tue Jul 24, 2012 9:20 pm
by Allanon
I've two proposal to enhance the Execute() command:
1. Give the possibility to capture directly into Hollywood the executed program output
captured_output = Execute(program_name)

2. Implement the possibility to attach a callback for every line captured from the executed command

I don't know if this is easy or not to implement but could be really usefull, for example when launching a program that do long tasks and print out the progresses of the elaboration (encoders, archiver, and so on are good examples) :)

Re: Execute() enhancement

Posted: Mon Oct 22, 2012 1:08 pm
by JurassicC
Agreed as I'm currently redirecting the output from a called program to a text file, then reading the text file back in to see what the ouput was.

Re: Execute() enhancement

Posted: Mon Oct 22, 2012 11:07 pm
by Bugala
And another example of use would be that every now and then in Christiandevs.com they are talking of community project, but problem is one programs C, one Java, while another Blitz and me Hollywood. What i have been thinking is that if Hollywood could return return value of execute, then that would give possiblity to make for example sports game. Each community member who wishes to participate would make one sports challenge with whatever language they wish and then Hollywood would just start their challenge and after challenge ends, points would be returned and next challenge (execute) started.

Re: Execute() enhancement

Posted: Sat Oct 27, 2012 12:08 pm
by airsoftsoftwair
This would surely be nice but I'm afraid that this could rather be complicated too implement :)

Re: Execute() enhancement

Posted: Sat Oct 27, 2012 12:22 pm
by Allanon
Andreas wrote:This would surely be nice but I'm afraid that this could rather be complicated too implement :)
The hope will never die :D
This could let us implement nice apps saving us to write tons of code :mrgreen: