Hi all
can anyone please help me write a shell script for file transfer from windows to unix server and vice versa. i m new to unix shell scripting so kindly bare with the small mistakes tht i mite have made
the code is:
#!/bin/sh
filename="sample.txt"
user='user'
password='passwd'
IP='some ip'
ftp -n -i -v $IP 22 <<-END_SCRIPT > LOG_file
user $user $password
status
bin
get $filename
bye
END_SCRIPT
thanks in advance