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>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # Variables para poder asignar la URL del Proxy<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; httpExport = &quot;export http_proxy=http://&quot; + self.proxyHttpLineEdit.text() + &quot;:&quot; + self.httpProxySpinBox.text()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; httpsExport = &quot;export https_proxy=http://&quot; + self.proxyHttpsLineEdit.text() + &quot;:&quot; + self.httpsProxySpinBox.text()<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ftpExport = &quot;export ftp_proxy=http://&quot; + self.proxyFtpLineEdit.text() + &quot;:&quot; + self.ftpProxySpinBox.text()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.httpProcess = QProcess()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.httpsProcess = QProcess()<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.ftpProcess = QProcess()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # Esto solo des un debug para ver exactamente la salida de dichas variables<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # TODO: una vez funcionando bien este método, comentar estas líneas<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #print httpExport<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #print httpsExport<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #print ftpExport<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # Ejecutamos el preceso o comando<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.httpProcess.start(httpExport)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.httpsProcess.start(httpsExport)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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>