Linux popen() alternative
#13
According to the people here you can use "start /b " to not open a command prompt on windows.

You could possible use:
local cmdline = -- the command string

if (cFile:GetPathSeparator() == "\\") then
   -- Windows
   cmdline = "start /b " .. cmdline -- Put "> nul" after this if you don't want to have the output in the current console.
else
   -- Other platforms
   cmdline = cmdline .. " &"
end

os.execute(cmdline)
Reply
Thanks given by:


Messages In This Thread
Linux popen() alternative - by xoft - 05-04-2015, 05:56 AM
RE: Linux popen() alternative - by NiLSPACE - 05-04-2015, 06:17 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 06:19 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 06:23 AM
RE: Linux popen() alternative - by NiLSPACE - 05-04-2015, 06:26 AM
RE: Linux popen() alternative - by worktycho - 05-04-2015, 06:59 AM
RE: Linux popen() alternative - by worktycho - 05-04-2015, 07:17 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 07:46 AM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 07:30 AM
RE: Linux popen() alternative - by xoft - 05-05-2015, 07:40 AM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 08:11 AM
RE: Linux popen() alternative - by xoft - 05-05-2015, 03:58 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 09:16 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 10:17 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 10:28 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 10:56 PM
RE: Linux popen() alternative - by xoft - 05-05-2015, 11:14 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 11:22 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 11:32 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 11:34 PM
RE: Linux popen() alternative - by tigerw - 05-06-2015, 03:47 AM
RE: Linux popen() alternative - by xoft - 05-08-2015, 12:33 AM
RE: Linux popen() alternative - by NiLSPACE - 05-08-2015, 12:38 AM
RE: Linux popen() alternative - by xoft - 05-08-2015, 12:40 AM
RE: Linux popen() alternative - by NiLSPACE - 05-08-2015, 12:42 AM



Users browsing this thread: 7 Guest(s)