if sys.platform == 'darwin':␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, '%sOSXvnc/OSXvnc-server' % devPath, 'OSXvnc-server', '-nopw -connectHost', '%s' % host)␊ |
elif sys.platform.find('linux') != -1:␊ |
self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc', '-ncache 20 -solid black -connect' , '%s' % host)␊ |
self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc', '-nopw -ncache 20 -solid black -connect' , '%s' % host)␊ |
elif sys.platform == 'win32':␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\WinVNC.exe', 'c:\\windows\\WinVNC.exe')␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, '%s\\WinVNC.exe' % os.environ['WINDIR'], '%s\\WinVNC.exe' % os.environ['WINDIR'])␊ |
print "Launched WinVNC.exe, waiting to run -connect command..."␊ |
import time␊ |
time.sleep(3)␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\WinVNC.exe', 'c:\\windows\\WinVNC.exe', '-connect', '%s' % host)␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, '%s\\WinVNC.exe' % os.environ['WINDIR'], '%s\\WinVNC.exe' % os.environ['WINDIR'], '-connect', '%s' % host)␊ |
␊ |
else:␊ |
print 'platform not detected'␊ |
|
self.connectButton.Enable(True)␊ |
self.stopButton.Enable(False)␊ |
elif sys.platform.find('linux') != -1:␊ |
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')␊ |
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen') ␊ |
elif sys.platform == 'win32':␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\vncviewer.exe', 'c:\\windows\\vncviewer.exe', '-listen' )␊ |
print 'Launching %s\\vncviewer.exe' % os.environ['WINDIR']␊ |
self.returnPID = os.spawnl(os.P_NOWAIT, "%s\\vncviewer.exe" % os.environ['WINDIR'], '%s\\vncviewer.exe' % os.environ['WINDIR'], '-listen' )␊ |
else:␊ |
print 'platform not detected'␊ |
␊ |