Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Please enter id no : "
- read input_variable
- echo "You entered: $input_variable"
- HOST=xxxx
- USER=xx
- PASSWORD=xxx
- ftp -inv $HOST <<EOF
- user $USER $PASSWORD
- cd /wpath/to/copy/files/$input_variable/inputs/final/
- mput x.csv
- bye
- EOF
- if [[ ${#input_variable} != "6" ]] then
- echo "wrong length"
- exit 1
- fi
- mkdir /wpath/to/copy/files/$input_variable/inputs/final/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement