Go Down

Topic: Is it possible to run a .lua file, or a .jar file? (Read 2 times) previous topic - next topic

Arrch


What should be done on the Arduino team's part is to create a function that can interact with your computer (as simple as os.execute(), or system() (in C), instead of inefficiently having to do it through other programming languages.


That's a feature of the operating system, not the Arduino; the OS doesn't give serial devices access to the API to launch programs.

Grumpy_Mike

You can do this directly with a leonardo, it can be made to look like a keyboard and so can type commands directly into your computer to run anything you want.

nate890

"That's a feature of the operating system, not the Arduino; the OS doesn't give serial devices access to the API to launch programs."

That's why I'd launch it through a .lua file with the code that I showed using os.execute from the arduinio... Technically I want something to trigger the .lua file to make it execute.

Nick Gammon


For instance, if Arduino was able to create a file ...


On which disk drive? You send me a photo of the disk drive attached to your Arduino, and I'll tell you how to create a file on it. Deal?

Arrch


"That's a feature of the operating system, not the Arduino; the OS doesn't give serial devices access to the API to launch programs."

That's why I'd launch it through a .lua file with the code that I showed using os.execute from the arduinio... Technically I want something to trigger the .lua file to make it execute.


Launching a script requires the same API call as launching a program, so there is still the issue of serial devices not being able to launch "stuff"

Go Up