Last active
December 18, 2020 20:12
-
-
Save qmahoney/ec6c02176f0fe897b6d8c4169e8fa0cc to your computer and use it in GitHub Desktop.
Fake Athena header page
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 | |
# Copy banner.ps and owl.ps from: | |
# http://athena10.mit.edu/trac/browser/trunk/third/lprng/athena?rev=13556 | |
echo "/user (`whoami`) def" > vars.ps | |
echo "/host (`hostname`) def" >> vars.ps | |
echo "/queuejob () def" >> vars.ps | |
echo "/date (`date +"%A, %e %B %Y %H:%M:%S"`) def" >> vars.ps | |
echo "/motd () def" >> vars.ps | |
# /graph /biggraph /hex /loglog /polar /staff /bigstaff /blank | |
echo "/bannertype /graph def" >> vars.ps | |
cat vars.ps owl.ps banner.ps | ps2pdf - header.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome, @jcbarret! And thanks, I fixed the revision.
Also, I had the date format wrong. It's
%e
instead of%d
, and there's an extra space between the year and the time.