Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Created August 30, 2013 19:22
Show Gist options
  • Save goyalankit/6393364 to your computer and use it in GitHub Desktop.
Save goyalankit/6393364 to your computer and use it in GitHub Desktop.
check on what public printers you have access at UT Austin Computer Science
#!/bin/bash
#
# check on what public printers you have access at UT Austin Computer Science
#
if [ "$1" == "" ];
then
export def=`eval whoami`
echo "taking default username as $def";
else
export def=$1;
fi
for i in `cshosts pubprinters`
do
echo `udbaccess $def $i`;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment