S�ll
Thanks for the advices.
I could nail down the problem to a much smaller test program which shows "conflict"
between rsh and the os.system() (see below)
It looks indeed like a general python problem:
I use os.popen in place of os.system. However it does not solve the rsh problem which
is still stopping at the start
It is solved by ssh but this one keeps on asking for my password !
Any solution to that problem ?
Kve�ja
Thanks
Jean-Baptiste
PS: Still using python1.5 and pygtk 0.6
------------------------------------------
#!/usr/bin/python
import os
import string
def main():
print "start rsh"
# os.system('rsh lcs301 "ls" ')
try:
lines = string.split(os.popen('rsh lcs301 "ls|head" ').read(),'\n')
except :
print "error"
for i in lines[:-1]:
print i
return 0
if __name__ =="__main__":
main()
--------------------------------------
produces the follwoing stop
~/devel/queue $ pb.py 1 &
[1] 24102
~/devel/queue $ Queue will refresh every 1 seconds
refresh
[1]+ Stopped pb.py 1
On Tue, 10 Jun 2003 08:52:09 -0300
Christian Reis <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 10, 2003 at 09:35:33AM +0000, Jean-Baptiste Cazier wrote:
> > The queue.py program parse the output of a program (qstat) on a remote
> > machine (lcs301) to summarize it. And make a nicer window (see src
> > attached)
>
> I suspect the problem is with os.system(). Have you tried changing that
> call for an open() just as a test?
>
> Try redirecting output from os.system() (use 2> /dev/null 1> /dev/null
> or something like that) and seeing if it does anything.
>
> This is actually a python problem :-) so it might make more sense to ask
> in a Python list or channel.
>
> Take care,
> --
> Christian Reis, Senior Engineer, Async Open Source, Brazil.
> http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
--
-----------------------------
[EMAIL PROTECTED]
Department of Statistics
deCODE genetics Sturlugata,8
570 2993 101 Reykjav�k
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/