Hi,
I'm fairly new to Linux and need help with a script to ftp a .csv file to a remote server. I can ftp the .csv file manually from my server to the remote server in the "/" location.
When I execute the script I receive the following message Could not create file.
Here's what I have for the script so far.
#!/bin/ksh
HOST='IP Address of Host Server'
USER='Username'
PASSWD='Password'
FILE='location of the .csv file on my server'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0