I'm trying to put the result in a variable but it didn't work Syntax error: end of file unexpected (expecting ")")
#!/bin/bash
test="$(lftp -u ns454575.ip-154-145-259.eu,NGFYv85MTI ftpback-rbx2-588.mybackup.ovh.net << EOF
cd /backup/site
ls
bye
EOF)"