Hi all, On Thu, Jul 19, 2012 at 06:22:38PM +0200, Michael Hauser wrote: > Vivian Brégier ejaculated: > > eval $(tr '\0' ' ' < /proc/$(pgrep awesome)/environ) scrot > > Thanks for that oneliner. > > Telneting or sshing into the box is of course the obvious option.
Well, it was too obvious for me. SSHing works best, a local VT seems not to work, I can do the screenshot fine, but only get a black image. Seems like the framebuffer gets overridden with all black when I switch to another VT. But ssh and a small shellscript did its job perfectly. If anyone 'd like to reuse it, this was all: | kandre@sapdeb2(pts/8) ~ % cat bin/screenshot.sh | #!/bin/bash | cd ~/Bilder | eval $( tr '\0' '\n' < /proc/`pidof awesome`/environ | grep -e DISPLAY -e | XAUTHORITY ) | scrot Thanks to all for helping me! Regards, Andre -- Andre Klärner Telefon: 0351/79666546 Fax: 0351/79688547 Mobil: 0172/9838653
smime.p7s
Description: S/MIME cryptographic signature