Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local aServers =
  2. {
  3.     { sName = "LOTRS_Public", sPath = "~/mta_server_pub/mta-server64" };
  4.     { sName = "LOTRS_Publicc", sPath = "~/mta_server_pub/mta-server64" };
  5. }
  6.  
  7. for Index, Table in ipairs( aServers ) do
  8.     local sResult = os.execute("screen -ls | grep "..Table.sName);
  9.    
  10.     if not sResult then
  11.         local result = os.execute( "screen -S "..Table.sName.." "..Table.sPath );
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement