Ras2rpdl has been tested only on Ricoh SP-10PS proIInw.
ricoh|remote printer (Ricoh PS):\
        :sd=/var/spool/ricoh:mx#0:sh:\
        :lf=/var/spool/ricoh/log:\
        :lp=:rm=ricoh:rp=lpb:
ricoh2|two-side remote printer:\
        :sd=/var/spool/ricoh:\
        :lp=/dev/null:mx#0:\
        :lf=/var/spool/ricoh/log:\
        :if=/home/auto/j2ps:\
        :vf=/home/auto/ras2rpdl2:
The content of the filter /home/auto/ras2rpdl2 should be as follows:
#!/bin/sh sf1=/var/spool/ricoh/ras2rpdl2.1 sf2=/var/spool/ricoh/ras2rpdl2.2 if [ -f "$sf1" ] then cat > $sf2 /home/auto/ras2rpdl $sf1 $sf2 | /usr/ucb/lpr -Pricoh >/dev/null 2>&1 rm $sf1 $sf2 else cat > $sf1 fi
Additionally, the content of /home/auto/j2ps goes as follows:
#!/bin/sh /bin/jtops -v | /usr/ucb/lpr -Pricoh >/dev/null 2>&1
lpsystem -t bsd ricoh lpadmin -p ricoh -s ricoh -T unknown -I any accept ricoh enable ricoh
First, copy and edit a standard printer interface program.
cp /var/spool/lp/model/standard /home/auto/ricoh2 vi /homr/auto/ricoh2
Insert
between the two lines. Then, rewrite
trap 'cd ${TMPDIR};rm -fr ${TMPPREFIX}*; exit ${exit_code}' 0
into
trap 'rm -fr ${TMPPREFIX}*; exit ${exit_code}' 0
(Otherwise,
error message somehow occurs, making rm impossible!?). At this point, the content of /home/auto/ras2rpdl2 goes as follows:
#!/bin/sh dir=/tmp sf1=ricoh2.1 sf2=ricoh2.2 # cd $dir if [ -f "$sf1" ] then cat > $sf2 /home/auto/ras2rpdl $sf1 $sf2|/usr/bin/lp -d ricoh>/dev/null 2>&1 rm $sf1 $sf2 else cat > $sf1 fi
Then, register ricoh2 printer as follows:
lpadmin -p ricoh2 -v /dev/null -I raster -i /home/auto/ricoh2 accept ricoh2 enable ricoh2
Now every other time
prints out (two pages), a sheet will be printed front and back.