Created
April 22, 2016 04:12
-
-
Save alexandre-mbm/a99cbe47a4ba86939296b37d9c2a7ea1 to your computer and use it in GitHub Desktop.
Script que facilita checagem diária do DOU RN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
READER=evince | |
FILE=dom_$(date +%Y%m)$1.pdf | |
URL=http://portal.natal.rn.gov.br/_anexos/publicacao/dom/$FILE | |
DIR=dom | |
wget -P $DIR -q -c $URL && $READER $DIR/$FILE || echo "DOM $1 not found" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alandbm, olha aí.