Created
August 30, 2013 19:22
-
-
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
This file contains 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 | |
# | |
# 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