Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP question

Status
Not open for further replies.

bsek

Technical User
Jan 9, 2003
83
US
Hi,

I want to transfer some files from Solaris 8 box to windows pc using a non-interactive mode. How can I do this?

Thanks.
 
Assuming you have already tested to see if you can ftp from Solaris to the Windows box in interactive mode, see if this works:

HOST=<target_host_name_or_IP>
USER=<username_on_target>
PASS=<password_on_target>
ftp -n $HOST
ascii <or bin>
cd <to where you want to put the files>
put sourcefilename <targetfilename> (if the name has to be different)
put...
put...

 
Hi Bi,

Thanks for the reply. I created a script and tested it is working well.

#!/bin/sh
ftp -inv <<EOF
open system name or IP address
user username password
cd /I:/xx/xxx
get filename ot mget *
quit
EOF


 
Oops. I forgot to put the user and password in there. But you figured it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top