Skip to content

Instantly share code, notes, and snippets.

View nathanhollows's full-sized avatar

Nathan Hollows nathanhollows

View GitHub Profile
@nathanhollows
nathanhollows / otago-print.sh
Created July 29, 2017 07:38
Sends file to Otago University printing server via email. For linux systems. Accepts file path as argument
echo "" | mailx -v -r "EMAIL@student.otago.ac.nz" -s "Printing" -a "$1" -S smtp="smtp.office365.com:587" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="EMAIL@student.otago.ac.nz" -S smtp-auth-password="PASSWORD" -S ssl-verify=ignore printmeblack@otago.ac.nz