Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Created May 5, 2010 03:07
Show Gist options
  • Save anselmobattisti/390330 to your computer and use it in GitHub Desktop.
Save anselmobattisti/390330 to your computer and use it in GitHub Desktop.
# tira um print da tela e manda em anexo via e-mail
echo "Assunto:";
read ASSUNTO
echo "Destinatário";
read EMAIL
# gera o jpg da tela
import tela.jpg
# manda o mail com o assunto e o anexo
mpack -s "$ASSUNTO" tela.jpg $EMAIL
# remove o tela.jpg
rm tela.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment