Is os.execute supposed to work on the device?

I’m having trouble with os.execute on the device (ipad in my case): it always returns an error code. It works OK in both the Corona and the XCode simulators, but not on the actual device.

Simple example: os.execute(“ls”)

Is this even supposed to work on the device? [import]uid: 6795 topic_id: 4124 reply_id: 304124[/import]

Hello Ansca devs? [import]uid: 6795 topic_id: 4124 reply_id: 12940[/import]

Common Ansca, this should be a really trivial question for you to answer! [import]uid: 6795 topic_id: 4124 reply_id: 13133[/import]

nope.

os.execute as well as other features that load arbitrary code into the app is not enabled. this is not a bug, rather, it is by design to adhere to apple’s developer agreement.

carlos

[import]uid: 24 topic_id: 4124 reply_id: 13258[/import]

(grumble)
http://developer.anscamobile.com/reference/index/osexecute

It’s nice to know that functions only work in the simulator…
the page above indicates that it should work on the device as well…

(shouldn’t the documentation be accurate? is frustrating when it is not)
[import]uid: 40100 topic_id: 4124 reply_id: 40888[/import]

Os.execute did work at one time on the iPhone but it looks like Apple has restricted it’s use. I’ll update the API page.
[import]uid: 7559 topic_id: 4124 reply_id: 40901[/import]

It’s really too bad that this doesn’t work on a device. I have been looking for a way to insure that gps is running on the device and this seemed like my best shot at that. (couldn’t this be made to work on the android OS? I didn’t think they had quite the same restrictions as apple) [import]uid: 40100 topic_id: 4124 reply_id: 41047[/import]