SHARE
TWEET

Untitled

a guest Dec 13th, 2016 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Below are my two script codes:
  2. **a.sh**
  3.  
  4. #!/bin/sh
  5.  
  6. SRC_PATH="/xx/xxxx"
  7. HOST='ftp.xxx.xxx.com'
  8. USER='xxxx'
  9. PASS='xxx'
  10. FTP_SRC_PATH='out'
  11.  
  12. **b.sh**
  13. #!/bin/sh
  14.  
  15. /xx/xxx/a.sh
  16.  
  17. ftp -n $HOST <<END_SCRIPT
  18. quote USER $USER
  19. quote PASS $PASS
  20. binary
  21. prompt off
  22. cd $FTP_SRC_PATH
  23. lcd $SRC_PATH
  24. mget IMS_*.ZIP
  25. bye
  26. END_SCRIPT
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top