Skip to content

Instantly share code, notes, and snippets.

@and1truong
Created February 15, 2012 04:43
Show Gist options
  • Select an option

  • Save and1truong/1833276 to your computer and use it in GitHub Desktop.

Select an option

Save and1truong/1833276 to your computer and use it in GitHub Desktop.
Screencapture command
loginwindowpid=`ps auwwx | grep loginwindow |grep -v grep | cut -c12-20`;
screencapture ~/Downloads/screenshot-`date '+%Y-%m-%d-%H-%M'`.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment