Here is a problomatic code for me:

burncmd = "growisofs -M " + /dev/hdc + " " + "-R -J" + " " + some_files # 

self.lbl_something.set_text(txt)
while gtk.events_pending():
        gtk.main_iteration()

ssh = Ssh(user,host)
        ssh.login()

while ssh.sendcmd(burncmd, readtype=0):
          print 'this will send and wait the output of the command'


ssh.close() 

With this code, i could only managed to burn files. If i send a dir
path to the some_files part then it didnt burn the ingredients of the
directory.

There is a problem about using the readtype. If i use 2, it blocks the
code. If i use 1, it didnt work either.

Another thing, at the while loop i want to get the return value of sendcmd:

result = ssh.sendcmd(burncmd, readtype=0)

then i will check the result. but i couldnt find how i will use it with while?

sendcmd sends some return values and lets say i want to concotaneta
them during the while loop.

I will be happy is someone tell me why i couldnt send file paths and
managed to burn them with sendcmd, but only file paths.
And also for the second problem, i need help. 

With my best wishes.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to