script with ftp

Hi,
I need to do ftp use to unix script. My conexion ftp have to stop next 3 minutes.

I have tried this in command line:

ftp -v -n -T 180 ftp.myftp.com

but doesn't work.

The error is:

usage: -T (all|get|put),maximum-bytes[,increment-bytes]]
usage: ftp [-46AadefginpRtVv] [-N netrc] [-o outfile] [-P port] [-q quittime]
           [-r retry] [-s srcaddr] [-T dir,max[,inc]]
           [[user@]host [port]] [host:path[/]] [file:///file]
           [ftp://[user[:pass]@]host[:port]/path[/]]
           [http://[user[:pass]@]host[:port]/path] [...]
       ftp -u URL file [...]

Can you help me?
Thanks

Most ftp's do not have a -T <timeout>
try some trickery like this:

#!/bin/ksh

pid=$$   # parent pid

# kill off the parent process after 3 minutes
# and display 'killed by SIGTERM'

sleep 180  && kill -15 ${pid} 2>&1 > log.out  &

child=$!
trap 'echo "killed by SIGTERM"' 15

# do your ftp

ftp -n <<EOF
   open somenode
   user username
   pass  password
   put filename
   bye
EOF
# note last EOF is <--- to the left margin

# if we get here kill the child before it kills us
#  exit normally with no 'killed by SIGTERM' message
trap ' ' 15
kill   $child
wait
exit

Ok. I'll try it.
Thank you