Skip to content

Instantly share code, notes, and snippets.

@fionn
Created February 19, 2017 21:17
Show Gist options
  • Save fionn/91e64448c8646e02bc8d7380d1a98f02 to your computer and use it in GitHub Desktop.
Save fionn/91e64448c8646e02bc8d7380d1a98f02 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$1" == "" ]; then
echo "You have to give me a file"
exit 1
fi
file=$1
printer="192.168.10.200"
port="9100"
cat $file | nc $printer $port
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment