Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CONNSTR=${1}
- REQUEST_ID=${4}
- P_SOURCE_DIR=${5}
- P_DEST_DIR=${6}
- THISMIN=$(date +%Y%m%d)
- newfilename=be_transactions_report_${THISMIN}*".csv"
- echo "Output newfilename : ${newfilename}"
- echo "Sleeping for 2 minutes..."
- sleep 60
- echo "Sleep Done."
- ftp -n << EOF
- open 335.21.18.43 -- Remote server ip
- user Temp Temp123 -- username / password
- prompt off
- lcd "/usr/tmp" -- copyig to local dir
- cd "/prod/outbound/reports" -- copying from remote path
- mput be_transactions_report_20160209235940.csv
- quit
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement