PDA

View Full Version : Implementing os.execute



Fenloh
August 13th, 2011, 21:31
Hi,

is it possible to implement the Lua components operating system facilities like os.esecute?

Fenloh

joshuha
August 13th, 2011, 22:07
For security reasons the devs have turned that off for now.

Fenloh
August 14th, 2011, 06:58
Well, it would be great if there is a possibility to start an external Program from FG, possibly with one or several arguments.

A friend and I were discussing the possibility of a program, to play sounds directly to Teamspeak, since you can loggin to TS with different accounts, at the same time, each playing sounds from a different source. Probably we will need to look through the DB.xml e.g. every half second for a specific string, in a specific node and save the game every time after changing the data in that node. Then we can execute some programs externally.

Ah well, we also might wait a little longer and see what is coming our way :).

Fenloh

joshuha
August 14th, 2011, 16:07
What may be doable if a little cumbersome is you can write a little program to monitor say the Campaign.registry file and when a certain string hits there that it then executes the program.

Moon Wizard
August 17th, 2011, 17:06
It is doubtful that we would ever allow the os package to be available in LUA, given the potential security holes that are opened by giving ruleset developers access to run any program on a host or client machine.

Regards,
JPG

Bidmaron
November 9th, 2012, 00:11
Fenloh, please pm me. I may have something you are interested in.