Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been looking through gnome-panel-screenshot's manpage: http://www.unix.com/man-page/All/1/gnome-panel-screenshot/ and I don't see any way to obtain the captured shot.

What I'd like to do:

  1. call gnome-screenshot -a to auto select area-picker
  2. draw my area
  3. when I let go, it's going to prompt me to name the file and save it
  4. I when I name this file, I want it to immediately pipe to (to upload it to my server):

rsync -avzh -e "ssh" $@ me@remote:/var/www/images

Does anyone know how I can automate steps 3 and 4?

share|improve this question

closed as off topic by Zoredache, voretaq7 Oct 23 '12 at 19:50

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
scrot -s is also something i'm willing to use, i just need to find a way to get the image into that function.. –  tester Mar 7 '12 at 18:56

1 Answer 1

up vote 1 down vote accepted

Ended up with this, would love to learn about better techniques though!

function screeny() {
    scrot -s -e 'rsync -avzh -e "ssh" $f me@remote:/var/www/images'
}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.