Hi,
Please advice whether my below requirement is feasible,
My requirement : Automated FTP from linux server to windows server using a shell script on every monday.
If feasible, please help me how to do this ?
Thanks in advance
Hi,
Please advice whether my below requirement is feasible,
My requirement : Automated FTP from linux server to windows server using a shell script on every monday.
If feasible, please help me how to do this ?
Thanks in advance
You can use crontab to schedule the FTP for every monday
You can add below commands to your shell script to FTP data
WINDOWS_SERVER=10.1.1.1
LOCALDIR=/home/mydir
FILENAME=abc.txt
# transfer the file
ftp -in << EOF
open $WINDOWS_SERVER
user username password
ascii
lcd $LOCALDIR
put $FILENAME
close
EOF
Has your windows server ftp installed/enabled?