Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- date=$(zenity --entry --text "Date");
- amount=$(zenity --entry --text "Amount for Check");
- to=$(zenity --entry --text "The check is made out to");
- letters=$(zenity --entry --text "Amount in Letters");
- rm -f check532.pdf
- cp check53.tex check532.tex
- sed -i "s,#date,$date," check532.tex
- sed -i "s/#amount/$amount/" check532.tex
- sed -i "s/#to/$to/" check532.tex
- sed -i "s,#letters,$letters," check532.tex
- pdflatex check532.tex
- #echo "Please put your check in the printer, right side down."
- #read -p "Press any key to print... " -n1 -s
- zenity --info --text "Please put your check in the printer, right side down. Then click OK to print."
- lp -o media=2.75x6 -o landscape check532.pdf
- rm -f check532.log check532.pdf check532.aux check532.tex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement