Advertisement
Guest User

Untitled

a guest
Dec 19th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Please enter id no : "
  3. read input_variable
  4. echo "You entered: $input_variable"
  5. HOST=xxxx
  6. USER=xx
  7. PASSWORD=xxx
  8. ftp -inv $HOST <<EOF
  9. user $USER $PASSWORD
  10. cd /wpath/to/copy/files/$input_variable/inputs/final/
  11. mput x.csv
  12. bye
  13. EOF
  14.  
  15. if [[ ${#input_variable} != "6" ]] then
  16. echo "wrong length"
  17. exit 1
  18. fi
  19.  
  20. mkdir /wpath/to/copy/files/$input_variable/inputs/final/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement