#!/bin/ksh # Path of ftp executable ftp="/usr/bin/ftp" # Give port or mention server name IP="test.test.com" #User ID to login into remote server user="THU" #Password to login in remote server pass="BFR" #ftp block starting - all will be written to log file echo "---------------------------------------------------" echo " Begin FTP Parameters " echo "---------------------------------------------------" echo "Destination Machine: $IP" echo "User ID: $user" echo "Password: ##############" echo "---------------------------------------------------" echo " End FTP Parameters " echo "---------------------------------------------------" echo " Begin FTP Session " echo "---------------------------------------------------" echo "open $IP quote USER $user quote PASS $pass lcd " |$ftp -n echo "---------------------------------------------------" echo " End FTP Session "