Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1487 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  Shell et python

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Shell et python

n°877034
olivierlac​oste
Posté le 19-10-2004 à 15:12:04  profilanswer
 

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

mood
Publicité
Posté le 19-10-2004 à 15:12:04  profilanswer
 

n°877359
SomeBugsIn​Me
life suxx
Posté le 19-10-2004 à 20:10:48  profilanswer
 

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]" );
 
;)

n°877384
masklinn
í dag viðrar vel til loftárása
Posté le 19-10-2004 à 20:34:55  profilanswer
 

RTFM bordel :o


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

---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  Shell et python

 

Sujets relatifs
Traduction code Python en Javacommandes pour récupérer des infos en shell?
verifier une saisie clavier en shell unixmis à jour d'une DB Oracle grace à des scripts shell
[python/py2exe] script setup.py, plusieurs fichiers sourcesInstallation PYTHON win32 + BOA pour les nulls ...
VBA, Shell et redirection[shell]boucle for imbriquée pour recopie de fichier
[VBA Cde Shell] problème avec les espaces[python] y'a moyen d'externaliser une variable ?
Plus de sujets relatifs à : Shell et python


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR