Pages : 1
#1 Le 02/02/2013, à 00:21
- trois_1
inbrication d'arguments
bonjour,
Ce script ne fonctionne pas:
NBGE=3
EXEC+="xfce4-terminal"
EXEC+=" --title=pc --command=\'boucle ssh root@pc:\' "
for ((I=1;I<=${NBGE};I++)); do
EXEC+=" --tab --title=at$I --command=\"boucle ssh root@at${I}:\""
EXEC+=" --tab --title=at${I}ihm --command=\"boucle ssh user@at${I}ihm:~/output/\""
EXEC+=" --tab --title=ge${I}ihmRoot --command=\"boucle ssh root@at${I}ihm:\""
done
xfce4-terminal $EXEC
J'ai un problème avec :" --title=pc --command=\'boucle ssh root@pc:\' "
bash sépare les arguments suivants alors qu'il ne faudrait pas, pourquoi? et comment faire?
\'boucle ssh root@pc:\'
idem avec :
\"boucle ssh root@pc:\"
dell e6520 i7-2760QM xubuntu 12.10 64bits + docking 2 écrans 19" DVI, avec technologie optimus déactivée :/
Hors ligne
#2 Le 02/02/2013, à 21:04
- nesthib
Re : inbrication d'arguments
Est-ce que ça ne fonctionne pas mieux avec ?
xfce4-terminal "$EXEC"
GUL Bordeaux : Giroll – Services libres : TdCT.org
Hide in your shell, scripts & astuces : applications dans un tunnel – smart wget – trouver des pdf – install. auto de paquets – sauvegarde auto – ♥ awk
⃛ɹǝsn xnuᴉꞁ uʍop-ǝpᴉsdn
Hors ligne
#3 Le 03/02/2013, à 21:18
- trois_1
Re : inbrication d'arguments
Non , cela ne fonctionne pas.
Unknown option "ssh"
dell e6520 i7-2760QM xubuntu 12.10 64bits + docking 2 écrans 19" DVI, avec technologie optimus déactivée :/
Hors ligne