i wrote a script for upload files through ftp. but i am not able to tranfer the file.
Here is the script
ftp -n -v $HOST << EOT
user $USER $PASSWD
mput abc.txt ftpstatus.txt
this script is running through cron job which sends the status of this file to my mail. Result i am getting into mail is
Connected to www.******.com
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 4 of 50 allowed.
220-Local time is now 01:32. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.
Remote system type is UNIX.
Using binary mode to transfer files.
331 User pinky OK. Password required
230-User pinky has group access to: backup
230 OK. Current restricted directory is /
Interactive mode off.
local: abc.txt remote: abc.txt
local: ftpstatus.txt remote: ftpstatus.txt
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
can anyone figure out what's is going wrong in it ?????????
Please help me. it's very urgent.
Thnx in advance