Execute() enhancement

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
Allanon
Posts: 461
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Execute() enhancement

Post by Allanon » Tue Jul 24, 2012 9:20 pm

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) :)
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

User avatar
JurassicC
Posts: 33
Joined: Fri May 25, 2012 9:48 pm

Re: Execute() enhancement

Post by JurassicC » Mon Oct 22, 2012 1:08 pm

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.
AmigaOne X1000 - RadeonHD 7870, 4GB RAM - AmigaOS 4.1ß
AmigaOne X5000 - Radeon R7 250, 2GB RAM - AmigaOS 4.1ß

Bugala
Posts: 722
Joined: Sun Feb 14, 2010 7:11 pm

Re: Execute() enhancement

Post by Bugala » Mon Oct 22, 2012 11:07 pm

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.

User avatar
airsoftsoftwair
Posts: 2914
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Execute() enhancement

Post by airsoftsoftwair » Sat Oct 27, 2012 12:08 pm

This would surely be nice but I'm afraid that this could rather be complicated too implement :)

User avatar
Allanon
Posts: 461
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Execute() enhancement

Post by Allanon » Sat Oct 27, 2012 12:22 pm

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:
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

Post Reply