Parts User Manual

5-10 Configuring the EPL-N2000 for UNIX
Script 1
The following script is a general interface program file:
NETPRINTER=”basename $0”
copies=$4
shift;shift;shift;shift;shift;
files=”$*”
i=1
while ($i -le $copies)
do
for files in $files
do
echo binary > /tmp/ftp.$$
echo put $file >> /tmp/ftp.$$
echo quit >> /tmp/ftp.$$
/usr/bin/ftp -n $NETPRINTER < /tmp/ftp.$$
/bin/rm /tmp/ftp.$$
done
i=’expr $i+ 1
done
exit 0”
*end of script*”