Hi Nick
As we discussed a long time ago I have been using lua on yun and lately I ported a ash script to lua.
The performance boost is huge!!! So me really happy.
However I bumped in a wierd thing. It seems that environment variables that have been created during on the command prompt before lua is started are not found by lua.
In the following dump DumpFile was created by running a script.
root@Marvin2:/www/cgi-bin/jantje# echo $DumpFile
/tmp/jantje/ttyATH0/dump.txt
root@Marvin2:/www/cgi-bin/jantje# lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio (double int32)
> print(os.getenv("DumpFile"))
nil
> print(os.getenv("HOME"))
/root
As you can see from the log above the OS knows the environment variable DumpFile but Lua does not.
Can you help me out on this one?
Txs
Jantje
As we discussed a long time ago I have been using lua on yun and lately I ported a ash script to lua.
The performance boost is huge!!! So me really happy.
However I bumped in a wierd thing. It seems that environment variables that have been created during on the command prompt before lua is started are not found by lua.
In the following dump DumpFile was created by running a script.
root@Marvin2:/www/cgi-bin/jantje# echo $DumpFile
/tmp/jantje/ttyATH0/dump.txt
root@Marvin2:/www/cgi-bin/jantje# lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio (double int32)
> print(os.getenv("DumpFile"))
nil
> print(os.getenv("HOME"))
/root
As you can see from the log above the OS knows the environment variable DumpFile but Lua does not.
Can you help me out on this one?
Txs
Jantje