I hope this is the right topic for this, but here is my question.
I have written a script that will backup a file from my server to my local machine via FTP. When I run this script through the terminal it works, but when I set it as a cronjob it does not.
ftp -n <<EOT
user username password
Is there any reason why this works when I run it through terminal and it does not when I run it from the crontab?
Note: The file is saved as gp_backup.sh and is set to be executable. I have edited out the password and username.