Code: Selecteer alles
#!/bin/bash
ftp -inv 192.168.1.230 << EOF
user *gebruikersnaam* *paswoord*
put /home/pi/abacom/test.txt
bye
EOF
Nu krijg ik altijd de fout:
Code: Selecteer alles
remote: /home/pi/abacom/test.txt
: No such file or directory.txt
?Invalid command
?Invalid command
221 Goodbye
Als ik dit manueel intyp gaat dit zonder problemen.

Edit: gevonden! bij put moet ik de destination filename ook zetten dus:
put test.txt test.txt