[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LUA os.execute help
- From: soly® <moh.slim@...>
- Date: Sun, 15 Aug 2010 11:17:35 +0200
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