Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [scp /samba-shares/DashboardReports/* andy@212.64.129.130:/var/reports/seo/rankings]; then
- mail -s "w00p w00p copied files over" andy@epiphanysolutions.co.uk
- rm -rf /samba-shares/DashboardReports/*
- echo "did work"
- else
- mail -s "Couldn't copy files over" andy@epiphanysolutions.co.uk
- echo "didn't work"
- fi
- echo "Complete"
Add Comment
Please, Sign In to add comment