On Thu, 27 Oct 2011 21:00:45 +0800, Dominic Drane
wrote:
> I'm having problems with QProcess, I'd like to rlogin into a machine at
the
> start of the process and then write commands into stdin but as soon as I
> call the following (I'm on a linux box):
>
> from PyQt4 import QtGui, QtCore
>
> cla
I'm having problems with QProcess, I'd like to rlogin into a machine at the
start of the process and then write commands into stdin but as soon as I
call the following (I'm on a linux box):
from PyQt4 import QtGui, QtCore
class TestWindow(QtGui.QDialog):
def __init__(self):
QtGui.QDialog.__init
On Sun, 30 Jan 2011 18:55:49 +0100, Manuel Rotter
wrote:
> Hello all
>
> I'm trying to use QProcess to execute some commands, but it seems to do
> nothing.
>
> Here is my Code:
>
> http://python.pastebin.com/NKHaj1W4
> -
> p = QtCore.QProcess()
> #p.setStandardOu
Hello all
I'm trying to use QProcess to execute some commands, but it seems to do nothing.
Here is my Code:
http://python.pastebin.com/NKHaj1W4
-
p = QtCore.QProcess()
#p.setStandardOutputFile(temp.name)
p.start("sh -c 'echo lol > /home/naeg/lolfile'")
p.close()
Le vendredi 26 février 2010, Phil Thompson a écrit :
>
> The pthread_atfork() didn't work for me.
>
> The /HoldGIL/ annotation did.
>
> Phil
Same conclusion: the pthread_atfork() just produces a systematic hold at the
first fork.
/HoldGIL/ seems to work.
Thanks for your help.
Denis
On Fri, 26 Feb 2010 14:14:51 +0100, Denis RIVIERE
wrote:
> Le vendredi 26 février 2010, Phil Thompson a écrit :
>> On Fri, 26 Feb 2010 12:08:58 +, Phil Thompson
>>
>> wrote:
>> >
>> > Unless you can provide me with a test case you'll have to
experiment...
>> >
>> > Try adding...
>> >
>> >
Le vendredi 26 février 2010, Phil Thompson a écrit :
> On Fri, 26 Feb 2010 12:08:58 +, Phil Thompson
>
> wrote:
> >
> > Unless you can provide me with a test case you'll have to experiment...
> >
> > Try adding...
> >
> > pthread_atfork(NULL, NULL, PyOS_AfterFork);
> >
> > ...after the cal
On Fri, 26 Feb 2010 12:08:58 +, Phil Thompson
wrote:
> On Fri, 26 Feb 2010 11:05:44 +0100, Denis RIVIERE
> wrote:
>> We have run into what we think to be more or less a bug in PyQt4, in
>> QProcess,
>> somewhat indirectly.
>> QProcess sometimes hangsup in threaded PyQt applications, at least
On Fri, 26 Feb 2010 11:05:44 +0100, Denis RIVIERE
wrote:
> We have run into what we think to be more or less a bug in PyQt4, in
> QProcess,
> somewhat indirectly.
> QProcess sometimes hangsup in threaded PyQt applications, at least on
Linux
>
> systems.
> The situation is the following:
> - A Py
We have run into what we think to be more or less a bug in PyQt4, in QProcess,
somewhat indirectly.
QProcess sometimes hangsup in threaded PyQt applications, at least on Linux
systems.
The situation is the following:
- A PyQt program is using two or more threads (say, python threads)
- one of the
> Hello i have a little problem.
> If i start the process like the sample all work:
>
> pr = QtCore.QProcess()
>
> pr.start('python /my_dir/pippo.py')
>
> but if i compile the pippo.py and i obtain an executable that i run with
> ./pippo
>
> how i have to do fur run it with qprocess?
> I have
Hello i have a little problem.
If i start the process like the sample all work:
pr = QtCore.QProcess()
pr.start('python /my_dir/pippo.py')
but if i compile the pippo.py and i obtain an executable that i run with ./pippo
how i have to do fur run it with qprocess?
I have try with
pr.start('/my_di
On Sonntag, 26. Oktober 2008, Fatih Arslan wrote:
> Hi,
>
> I'm developing a new tray-application which will be used for the
> Web-service "Dropbox". They have a daemon who is responsible for the
> syncing of files.
> This daemon is located in ~/.dropbox-dist/dropboxd. Now if i start
> this process
Hi,
I'm developing a new tray-application which will be used for the
Web-service "Dropbox". They have a daemon who is responsible for the
syncing of files.
This daemon is located in ~/.dropbox-dist/dropboxd. Now if i start
this process like this:
self.process = QProcess()
self.dropBoxDaemon = os.
Ok Thanks, this is a start. Now is more clear.
I will do some test tonite.
The idea is, an application (small) to set the global enviroment proxy (as
we could do in bash with export bla bla:8080) but with a GUI, which i've
added XML support and a systray.
This is the actual look to have an idea:
h
On 17.06.08 18:57:51, Gustavo A. Díaz wrote:
> Could you give me a little tip of how i could solve this by using QProcess?
> If not much to ask
> I am reading about setEnviroment() but i dont understand exactly which is
> the steps i should follow as starting point.
Well, lets say you want to star
Andreas,
Could you give me a little tip of how i could solve this by using QProcess?
If not much to ask
I am reading about setEnviroment() but i dont understand exactly which is
the steps i should follow as starting point.
Thanks in Advance :)
2008/6/17 Gustavo A. Díaz <[EMAIL PROTECTED]>:
> Ye
Yeah I know, no problem :)
I know that export is not a command or so... I should think better before
asking. :)
Since i am New in development world, i should first think better the
solution.
Cheers.
2008/6/17 Andreas Pakulat <[EMAIL PROTECTED]>:
> On 17.06.08 16:44:24, Gustavo A. Díaz wrote:
>
On 17.06.08 16:44:24, Gustavo A. Díaz wrote:
> Yeah well, i am still newbie here... so...
I guess I should've put a :) at the end of the first sentence. Wasn't
meant quite as harsh as it may have sounded. This fact is something
that's not really written in bold letters in handbooks, unless you rea
Yeah well, i am still newbie here... so...
Thanks for the Tip...
2008/6/17 Andreas Pakulat <[EMAIL PROTECTED]>:
> On 17.06.08 15:52:02, Gustavo A. Díaz wrote:
> > But the command is not being executed since i still have the export of
> the
> > proxy variables empty.
> > What i am doing wrong her
On 17.06.08 15:52:02, Gustavo A. Díaz wrote:
> But the command is not being executed since i still have the export of the
> proxy variables empty.
> What i am doing wrong here?
You don't understand how processes and environment variables work.
QProcess forks a new child process to execute the comm
Hi guys,
I am developing an small app to execute the command export for set a proxy
on my OS (Linux of course).
I using the method:
def applyChanges(self):
# Variables para poder asignar la URL del Proxy
httpExport = "export http_proxy=http://"; +
self.proxyHttpLineEdit.text() +
Mark Summerfield a écrit :
I think PyQt is nice enough to accept a Python list here. Also, I don't
think you can use a shell redirection (>) like this, so I'd try:
self.proc.start("lout", ["-o", "my_file.ps", "my_file.lout"])
Thanks Mark, this is exactly what I was looking for.
If you
On 2007-11-21, kib2 wrote:
> Hi,
>
> I'm using QProcess to launch some commands, no problem with basic ones,
> ie to launch a LaTeX file with pdflatex I use:
>
> self.proc.start("pdflatex", QtCore.QStringList(["my_file.tex"]))
>
> Now, I wanted to launch the following command :
>
> "lout my_file.lo
Ingmar Steen a écrit :
Hi,
That won't work because the '>' (redirect) you use in a shell
environment doesn't 'magically' work. The shell (bash, ksh, etc)
performs the job of capturing the child process' 'stdout' (the regular
output of the process) and redirects it to a file.
To achieve that
On Nov 21, 2007 7:53 PM, kib2 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using QProcess to launch some commands, no problem with basic ones,
> ie to launch a LaTeX file with pdflatex I use:
>
> self.proc.start("pdflatex", QtCore.QStringList(["my_file.tex"]))
>
> Now, I wanted to launch the following
Hi,
I'm using QProcess to launch some commands, no problem with basic ones,
ie to launch a LaTeX file with pdflatex I use:
self.proc.start("pdflatex", QtCore.QStringList(["my_file.tex"]))
Now, I wanted to launch the following command :
"lout my_file.lout > my_file.ps"
I've made these tries
On Friday 15 December 2006 13:57, Jacek Jablonski wrote:
> I have some program in C++ that emits the data to stdout. And I have
> some script in Python. I want this script to read the data everytime
> it is available and then move the progress bar. But whole content is
> read when QProcess ends. He
Hi!
I have some program in C++ that emits the data to stdout. And I have
some script in Python. I want this script to read the data everytime
it is available and then move the progress bar. But whole content is
read when QProcess ends. Here is code:
*
from PyQt4 import QtCore, QtGui
class GG(
29 matches
Mail list logo