Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test | TEST)
- echo "Please enter id no : "
- read -r input_variable
- if [[ ${#input_variable} -ne "7" ]]
- then
- echo "Please check id no given"
- exit 1
- fi
- HOST=XXX
- USER=XXX
- PASSWORD=XX
- ftp -inv $HOST <<- EOF
- user $USER $PASSWORD
- mypath='/test/$input_variable/destination/'
- if ! cd "$mypath"
- then
- exit 1
- fi
- mput x.csv
- EOF
- exit 1
- ;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement