Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #!/bin/bash
  2. ### In this model, the same filename is processed on each run.
  3. ### A timestamp is added to the result file and data file is copied to the archive or error folder with a timestamp after processing.
  4.  
  5. # Set current directory
  6. cd `dirname "$0"`
  7.  
  8. # Set the environment variables
  9. . ./Environment.sh $0
  10.  
  11. #######################################################################################################
  12. #
  13. #######################################################################################################
  14.  
  15.  
  16. FILE=/hcm/Inbound/file.csv
  17.  
  18. sshpass -p 'xyz' sftp -oBatchMode=no -b - -oStrictHostKeyChecking=no zys@192.abc.taleo.net <<_EOF_
  19.  
  20. cd /upload/
  21.  
  22. put $FILE
  23.  
  24. _EOF_
  25.  
  26. # Exit
  27. exit $?
  28.  
  29. -bash: sshpass: command not found
  30.  
  31. ssh-keygen -t dsa and other steps but I cannot access putty of the second server due to which I am not being able to execute the next steps.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement