|
Bas de page | |
---|---|
Auteur | Sujet : Code de retour |
Tangrim Des bisous et des nounours ! | Bonjour.
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
![]() Publicité | Posté le 12-01-2010 à 10:20:08 ![]() ![]() |
Tangrim Des bisous et des nounours ! | Pour la deuxième partie de ma question, j'ai trouvé ça:
Je me demande: si comme j'appelle un os.system pour le scp, c'est peut être sh qui m'écrit l'erreur, est il possible dans ce cas de récupérer ça en python ? edit: c'est effectivement le cas :s Message édité par Tangrim le 12-01-2010 à 14:26:10 --------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása | Oskour Faut pas utiliser os.system si tu as besoin de faire autre chose que "j'appelle un utilitaire basique et c'est tout". Vas vite voir le contenu du module subprocess, vilain chenapan. D'ailleurs t'es même plus censé utiliser os.system en fait, subprocess.call et subprocess.check_call sont largement mieux. Quand à la 2e partie de la question, ugh Message cité 1 fois Message édité par masklinn le 12-01-2010 à 16:17:26 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Tangrim Des bisous et des nounours ! |
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása | Franchement, je te suggère de passer par paramiko (qui fait du sftp, même si ça gère pas le scp).
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Tangrim Des bisous et des nounours ! |
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 13-01-2010 à 10:04:59 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Tangrim Des bisous et des nounours ! |
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
KangOl Profil : pointeur |
--------------- Nos estans firs di nosse pitite patreye... |
![]() Publicité | Posté le 13-01-2010 à 12:08:37 ![]() ![]() |
Tangrim Des bisous et des nounours ! |
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
Tangrim Des bisous et des nounours ! |
Message édité par Tangrim le 13-01-2010 à 14:19:58 --------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
KangOl Profil : pointeur | tu peux récupérer le résultat de p.communicate()
--------------- Nos estans firs di nosse pitite patreye... |
Tangrim Des bisous et des nounours ! |
En effet j'ai bien le message désiré dans p.communicate, pas contre je n'arrive pas à recuperer ma phrase, je pensais que c'était une liste mais le __class__ me montre que non. Message cité 1 fois Message édité par Tangrim le 13-01-2010 à 14:41:00 --------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
http://docs.python.org/library/sub [...] ommunicate accessoirement, prière d'utiliser type(foo) pas foo.__class__ (qui est un détail d'implémentation):
Message édité par masklinn le 13-01-2010 à 14:56:04 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Tangrim Des bisous et des nounours ! | Un tuple !
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Tangrim Des bisous et des nounours ! |
Message cité 1 fois Message édité par Tangrim le 13-01-2010 à 16:24:26 --------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Tangrim Des bisous et des nounours ! |
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
![]() Publicité | Posté le ![]() ![]() |
Sujets relatifs | |
---|---|
Net::ftp code retour | code retour main() |
Code retour et gestion des erreurs | Code retour Java sous Unix |
Code de retour FTP.Exe | Comment gérer un code retour d'une procédure SQL serveur en VB |
code retour de la commande 'execute sql'... | Code de retour d'un batch windows |
fork et code retour | |
Plus de sujets relatifs à : Code de retour |