Skip to content

Instantly share code, notes, and snippets.

@Sumith1896
Created May 25, 2017 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sumith1896/c1ea0264612654fdda3a319f47426995 to your computer and use it in GitHub Desktop.
Save Sumith1896/c1ea0264612654fdda3a319f47426995 to your computer and use it in GitHub Desktop.
Print @ UW
echo "Starting printing job";
file="$1";
fullpath=$(readlink -f "$file");
filename=$(basename "$fullpath");
scp "$fullpath" kulal@barb:;
ssh kulal@barb "lpr -Ppsc441 $filename";
ssh kulal@barb "rm -f $filename";
echo "Successfully printed $filename";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment