From: Ogz <com...@gm...> - 2005-07-25 17:21:05
|
Here is a problomatic code for me: burncmd =3D "growisofs -M " + /dev/hdc + " " + "-R -J" + " " + some_files #= =20 self.lbl_something.set_text(txt) while gtk.events_pending(): gtk.main_iteration() ssh =3D Ssh(user,host) ssh.login() while ssh.sendcmd(burncmd, readtype=3D0): print 'this will send and wait the output of the command' ssh.close()=20 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 =3D ssh.sendcmd(burncmd, readtype=3D0) then i will check the result. but i couldnt find how i will use it with whi= le? 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.=20 With my best wishes. |