![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Freeing up a serial port with a modem connected | ebender1 | UNIX for Dummies Questions & Answers | 0 | 01-16-2008 07:54 AM |
| Add printer connected to a axis printserver | uadm26 | AIX | 2 | 06-21-2007 01:28 AM |
| Form Feed... | johnny_woo | UNIX for Dummies Questions & Answers | 5 | 10-31-2003 02:02 AM |
| getting info from microannex connected to serial port A | dorilevy | UNIX for Dummies Questions & Answers | 1 | 01-06-2003 04:27 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Disable form feed on a serial printer connected to Sco OpenServer
I connected a serial printer to my scoOpenServer which works great. I was able to disable the banner in the interface of the printer. However i am unable to find the command in the interface to disable the formfeed . Below is a copy of the interface file. Please can anyone instruct me on how to disable the file.
-------------------------------------------------------------------------- #Set up some global variables. : ${SPOOLDIR:=/usr/spool/lp} : ${LOCALPATH:=${SPOOLDIR}/bin} #Set up the default filter. if [ -x "${LOCALPATH}/lp.cat" ] then LPCAT="${LOCALPATH}/lp.cat 0" else LPCAT="cat" fi #If we are not using a filter, use the default one. if [ -z "${FILTER}" ] then FILTER="${LPCAT}" fi if [ -x "${LOCALPATH}/drain.output" ] then DRAIN="${LOCALPATH}/drain.output 1" else DRAIN= fi nobanner="yes" if [ -z "${BANNERS}" ] then nhead=0 else nhead=${BANNERS} fi for i in $5 do case "${i}" in nobanner ) nobanner="yes" ;; esac done if [ "no" = "${nobanner}" ] then while [ $nhead -gt 0 ] do # echo "\014\c" echo "$x\n$x\n$x\n$x\n" banner "$2" echo "\n" user=`grep "^$2:" /etc/passwd | line | cut -d: -f5` if [ -n "$user" ] then echo "User: $user\n" else echo "\n" fi echo "Request id: $1 Printer: `basename $0`\n" date echo "\n" if [ -n "$3" ] then banner $3 fi nhead=`expr $nhead - 1` done fi copies=$4 #echo "\014\c" shift; shift; shift; shift; shift files="$*" i=1 while [ $i -le $copies ] do for file in $files do 0<${file} eval ${FILTER} 2>&1 echo "\014\c" done i=`expr $i + 1` done if [ "no" = "${nobanner}" ] then echo "$x\n$x\n$x\n$x\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$x\n$x\n$x\n$x" echo "$x\n$x\n$x\n$x\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" echo "$x\n$x\n$x\n$x\n$x\n$x\n$x\n$x\n" fi #Draining characters might be necessary. ${DRAIN} exit 0 |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|