[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Execute linux command on Lua and get the result
- From: Kevin Martin <kev82@...>
- Date: Mon, 27 Aug 2012 19:59:39 +0100
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