Guest User

Untitled

a guest
Jun 20th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [scp /samba-shares/DashboardReports/* andy@212.64.129.130:/var/reports/seo/rankings]; then
  4. mail -s "w00p w00p copied files over" andy@epiphanysolutions.co.uk
  5. rm -rf /samba-shares/DashboardReports/*
  6. echo "did work"
  7. else
  8. mail -s "Couldn't copy files over" andy@epiphanysolutions.co.uk
  9. echo "didn't work"
  10. fi
  11. echo "Complete"
Add Comment
Please, Sign In to add comment