Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- file=capture$(date +"%Y-%m-%d-%H.%M.%S").png
- localfolder=~/Desktop
- cloudfolder=/mnt/nfs/nonas-web/vrac
- myurl="http://nonas.ugo235.fr/vrac/$file"
- screencapture -i -P ${localfolder}/${file}
- echo "Upload to the cloud (y/n) ?"
- read reponse
- if [ "$reponse" = "y" ] ; then
- mv ${localfolder}/$file $cloudfolder
- echo "$myurl" | pbcopy
- echo "--> $myurl copied to the clipboard"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement