#!/bin/bash

# testfile backend script, inspired by Michael Sweet
#
# Usage: lpadmin -p printer -v testfile:/tmp/blubber

if [ "$#" == "0" ]; then
   echo 'direct testfile:/tmp/lpr-testfile.out "Unknown" "Unknown"'
   exit 0
fi

outfile=`echo $DEVICE_URI | sed -e '1,$s/^testfile://' `

cat $6 > $outfile
exit 0

