Epson EPL-N2000 User Manual - Network Administration - Page 66
End of Script, PERIPH=$MODEL
View all Epson EPL-N2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 66 highlights
3. Enter the following: MODEL='basename $0' REALMODEL='echo $0 /sed -e "s%$MODEL %model.lan/ $MODEL%"' #This variable may be initialized when the script is installed in the spooler. PERIPH= if ("$PERIPH"="") then PERIPH=$MODEL fi #Path for output of the original model TMPPATH=/tmp/$MODEL.data #Invoke original model and write to temporary file $REALMODEL "$@"TMPPATH #Log onto peripheral, switch to binary, and send the temporary file ( echo user xx echo binary echo put $TMPPATH echo bye ) ftp -i -n $PERIPH ERRSTAT=$? /bin/rm $TMPPATH exit $ERRSTAT *End of Script* Configuring the EPL-N2000 for UNIX 5-15
Configuring the EPL-N2000 for UNIX
5-15
3.
Enter the following:
MODEL=’basename $0’
REALMODEL=’echo $0 /sed -e “s%$MODEL %model.lan/
$MODEL%”’
#This variable may be initialized when the script is
installed in the spooler.
PERIPH= if (“$PERIPH”=””)
then
PERIPH=$MODEL
fi
#Path for output of the original model
TMPPATH=/tmp/$MODEL.data
#Invoke original model and write to temporary file
$REALMODEL “$@”TMPPATH
#Log onto peripheral, switch to binary, and send the
temporary file
( echo user xx
echo binary
echo put $TMPPATH
echo bye
) ftp -i -n $PERIPH
ERRSTAT=$?
/bin/rm $TMPPATH
exit $ERRSTAT
*End of Script*