I am trying to use ftp to transfer the contents of 2 directories on my local machine (PI-jessie) to a website. The script successfully changes to the first local & remote directory and uploads the files. However the files in the second local are transferred to the first remote i.e. all files end up in the first named remote directory ('Data' rather than 'Plots').
ftp -p -n -v $HOST << EOT ascii user $USER $PASSWD prompt lcd /home/pi/InfraSound/Data/2018 cd StarFishPrime/projects/infrasound/Data mput *.mseed cd StarFishPrime/projects/infrasound/Plots lcd /home/pi/InfraSound/Plots mput *.svg bye EOT