Hi guys,<br><br>I am developing an small app to execute the command export for set a proxy on my OS (Linux of course).<br>I using the method:<br><br><div style="margin-left: 40px;">def applyChanges(self):<br> <br> # Variables para poder asignar la URL del Proxy<br>
httpExport = "export http_proxy=http://" + self.proxyHttpLineEdit.text() + ":" + self.httpProxySpinBox.text()<br> httpsExport = "export https_proxy=http://" + self.proxyHttpsLineEdit.text() + ":" + self.httpsProxySpinBox.text()<br>
ftpExport = "export ftp_proxy=http://" + self.proxyFtpLineEdit.text() + ":" + self.ftpProxySpinBox.text()<br> <br> self.httpProcess = QProcess()<br> self.httpsProcess = QProcess()<br>
self.ftpProcess = QProcess()<br> <br> # Esto solo des un debug para ver exactamente la salida de dichas variables<br> # TODO: una vez funcionando bien este método, comentar estas líneas<br> #print httpExport<br>
#print httpsExport<br> #print ftpExport<br> <br> # Ejecutamos el preceso o comando<br> self.httpProcess.start(httpExport)<br> self.httpsProcess.start(httpsExport)<br> self.ftpProcess.start(ftpExport)<br>
<br><br></div>But the command is not being executed since i still have the export of the proxy variables empty.<br>What i am doing wrong here?<br><br>Thanks<br><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a>