Erreur, c'est plutôt: ftp -n < commande et commande contient open ftp.labas.loin user toto pass ... ou encore cat << EOT | ftp -n open ftp.labas.loin user toto foo cd reprtoire put fichier quit EOT