Shell et python

Shell et python - Python - Programmation

Marsh Posté le 19-10-2004 à 15:12:04    

J'ai un programme en python qui lance une commande shell (rsync .....)
Mais le shell me demande le password !
Comment ajouter un argument dans ma commande shell ?
Merci

Reply

Marsh Posté le 19-10-2004 à 15:12:04   

Reply

Marsh Posté le 19-10-2004 à 20:10:48    

tu utilises quoi pour exécuter ta commande ?
 
si c'est os.system(), bah tu ajoutes tes arguments comme si tu les entrais dans un shell.
 
os.system("rsync [OPTION]... [USER@]HOST::SRC [DEST]" );
 
;)

Reply

Marsh Posté le 19-10-2004 à 20:34:55    

RTFM bordel :o


Message édité par masklinn le 02-11-2004 à 20:26:05

---------------
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
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed