Calling external programs: 'os nil value'
Posted: 10.01.2005, 17:32
Hi, I would like to call an external program in the middle of my celestia script:
ret = os.execute("/usr/bin/mplayer -fs /path/intro.mpg")
(I tested also other commands of course)
I always get this error:
Celestia encountered an error while processing your script
Details
[string "/home/alesan/lavori/planetarium/celestia/scripts/t..."]:15: attempt to index global `os' (a nil value)
I tried to set celestia.cfg' ScriptSystemAccessPolicy both to "Ask" and "Allow" without luck.
Any suggestion?
thank you
Alessio Sangalli
ret = os.execute("/usr/bin/mplayer -fs /path/intro.mpg")
(I tested also other commands of course)
I always get this error:
Celestia encountered an error while processing your script
Details
[string "/home/alesan/lavori/planetarium/celestia/scripts/t..."]:15: attempt to index global `os' (a nil value)
I tried to set celestia.cfg' ScriptSystemAccessPolicy both to "Ask" and "Allow" without luck.
Any suggestion?
thank you
Alessio Sangalli