It's logical you get command successful, you'll get everytime this. I make the script running in background (if it's not running in background, you'll have to wait at least 3-4 seconds (time to rar and connect to the ftp and send the file) before sending another command to the FTP.
The reason because it doesn't work is that perhaps your FTP is down. I don't manage ftp errors in this version, this will be added in v2.0 (that will be totally rewritten in C).
To test it, remove "echo !detach 0" at line 5 (you will see FTP session); You will have to wait about 3-4 seconds before you see anything. Check also if the login given to the script has write permission.
|