FTP Status

When performing an FTP, does anyone know how to return the commands (i.e. 250) to see if it was successful?

ftp -n XXX.XXX.XXX.XXX <<- eof
User Pswd
cd xxx/xxxx/xxx
bin
mput *
quit
eof

Thanks

Add the -v option to the ftp -n line:

ftp -vn XXX.XXX.XXX.XXX <<- eof