|
NAMErpmlua - RPM Lua interpreter SYNOPSISrpmlua [{-e|--execute} “STATEMENT”] [{-i|--interactive}] [SCRIPT_FILE] [arg1 ...] DESCRIPTIONRun RPM internal Lua interpreter. Note: indexes start at 1 in Lua, so the program name is at arg[1] instead of the more customary index zero.
EXAMPLESExecute test.lua script file: rpmlua test.lua Execute args.lua script file with option processing: rpmlua –opts=ab:c args.lua – 1 2 3 -c -b5 Execute single statement to compare rpm versions: rpmlua -e “print(rpm.ver(`1.0') < rpm.ver(`2.0'))” Run an interactive session: rpmlua -i SEE ALSOlua(1), popt(3), getopt(3), rpm(8) http://www.rpm.org/ <URL:http://www.rpm.org/> AUTHORS
|