[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automatic ftping in a script - how?



Hi there,
> > I want to write a script in which some files are automatically ftped to
> > another machine (a username and password needs to be entered).  Is there
> > a nice utility which will enable me to do this?
> 
> check out the ncftpput utility
No need for any utility apart from plain ftp:

#!/bin/bash
#
ftp <<EOF
open target.host.net
user youruser
pass yourpassword
bin
cd /where/to/put/the/file
put your_local_file
bye
EOF

HTH... Tino.


Reply to: