Copying files from 1 machine to another

hi

i have a script that works on a file A in unix server. it basically extracts data from file A & put it into another file B. what i need to do is that, i have to copy file B onto another machine having Windows as its operating System. Presently i am doing this manually using FTP. now i need to automate it i.e. file should be copied automatically to the other machine by adding code into my script in UNIX.

Thanks
Rochit

You could do this, but you'll have to set the password into your script... should make sure you set the correct permission then.

#! /usr/bin/ksh

HOST=remote.host.name
USER=whoever
PASSWD=whatever

exec 4>&1
ftp -nv >&4 2>&4 |&

print -p open $HOST
print -p user $USER $PASSWD
print -p cd directory
print -p binary
print -p put your_file
print -p bye

wait