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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp file to a windows shared drive

Status
Not open for further replies.

joeythelips

IS-IT--Management
Aug 1, 2001
305
IE
Hi

i want to ftp a file from my hp-ux folder to a shared windows drive on our network

The filename i want to ftp is winb.csv
Can someone help me write the script for this.

The windows shared drive is called data1 and the share drive is on s:

hope this makes sense
 
Something like
Code:
#!/bin/ksh
HOST='remote.host'
USER='username'
PASSWD='password'
FROMFILE='myfile.txt'
TOFILE='yourfile.txt'

/usr/bin/ftp -inv <<EOF
open $HOST
user $USER $PASSWD
put $FROMFILE $TOFILE
close
bye
EOF
 
Does the windows server have FTP Services installed?

You will not be able to FTP to a Windows Share. There must be an FTP server installed on the Windows Server.

You can install Samba and have the Windows share mounted onto the HP server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top