I have a script on a unix box which generate a log and send to a windows server.
My script has to run 4 times a day and it will append the result of each run on the same log, it means that the log on the windows server should be overwritten every time. After the first run it doesn't work and I get a
Which I guess that is because the file exists already on the windows server, all the rest of the script works fine and I have all the history in my log on the unix side.
The syntax of my script for the FTP is:
ftp -n $HOST << EOF user $USER $PASSWD binary prompt lcd /dba/logs/ mput monitor_FM2.log quit EOF exit 0
I tried also with
put instead of
mput, but the result is the same.