I have a shell script that FTPs some non-sensitive data to a remote server. However, I would like to set the remote path rather than just use the remote FTP user's default path. I have searched for ages but can't find any way of doing this which seems crazy.
Here's a sample of a relevant part of my script;
#!/usr/bin/env bash
cd "$path" # local path
cp some.log "$stamp"_some.log
ftp -n -p $ftp_host <<END_SCRIPT
quote USER $ftp_user
quote PASS $ftp_pass
binary
put "$stamp"_some.log
quit
END_SCRIPT
Is there really no way to change the remote path to upload to?