lua-users home
lua-l archive

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


Dear all

I have the following lua code


act = {"dsm",   "nn10", "nn9"};
for b = 1, table.getn(act), 1 do
zz = act[b] ;
os.execute("echo 'zz' >>\etc\putty\putty1.log")
end

i really want to add the value of the variable 'zz' in the echo
command but the command os.execute("echo 'zz'
>>\etc\putty\putty1.log") print the word zz not the value of the
variable zz !!!

plz help me to use the os.execute("echo to get the value of the
variable zz in the file


-- 
mohamed slim