On the first test i also tried with systemstatus.sh
But giving that as command didn't work. Now giving systemstatus it works.
When i give system or status, then it doesn't work.
The reason was because i have multi .sh files with curtain in it.
But liked that for other command, like systemstatus i only can give status and it works
Tried to make this, but that doens't work. Then it takes the (line:match(cmda)) again
Code: Select all
if (line==cmda..".sh") then
print_to_log(0,line)
os.execute(BotBashScriptPath .. line .. ' ' .. SendTo .. ' ' .. stuff)
found=1
elseif (line~=cmda..".sh") then
if (line:match(cmda)) then
print_to_log(0,line)
os.execute(BotBashScriptPath .. line .. ' ' .. SendTo .. ' ' .. stuff)
found=1
end
end
Code: Select all
if (line==cmda..".sh") then
print_to_log(0,line)
os.execute(BotBashScriptPath .. line .. ' ' .. SendTo .. ' ' .. stuff)
found=1
else
if (line:match(cmda)) then
print_to_log(0,line)
os.execute(BotBashScriptPath .. line .. ' ' .. SendTo .. ' ' .. stuff)
found=1
end
end
Any ideas?