lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 27 Aug 2012, at 19:38, Felipe Oliveira Gutierrez wrote:

>   key=os.execute('xmlstarlet sel -t -v "/account_out/authenticator" /var/lib/boinc-client/lookup_account.xml')

os.execute() doesn't return the output of the program. In this case it looks like you might be able to use io.popen()

http://www.lua.org/manual/5.2/manual.html#pdf-os.execute
http://www.lua.org/manual/5.2/manual.html#pdf-io.popen

Thanks,
Kev