Plop les moules,
je bataille sur un problème à la noix:
ssh serveur "lanscan | awk '/UP/ { print \$5 }' | xargs -n 1 ifconfig"
marche nickel.
Mais je suis incapable d'échapper correctement tout ça pour faire un
Code :
- $command="lanscan | awk '/UP/ { print \$5 }' | xargs -n 1 ifconfig";
- open(FH, '-|', "ssh serveur command" );
|
ssh récupère jamais la bonne chaîne c'est lourd 