Visionfs HPLaserJet Printer Script- J.P. Radley

NOTE: The 3.1 version of Visionfs ( latest version is always available from Sco's Vision Site) has a new method for installing printers. You can still use the method shown here, but the following command adds a new Unix printer called "winprint" and prints to a Windows share called "HP5" on the machine "Win98_17":



/usr/vision/bin/visionfs print --install winprint Win98_17 HP5



Hate these ads?

THIS ONLY WORKS BEGINNING WITH VERSION 3.1

You may still want to use the methods shown here for the purpose of having more direct control. -Tony

This is a diff format file, suitable for use with patch. It takes as its base the standard HPLaserJet interface found in /usr/spool/lp/model on OSR5 systems and modifies that to include Jose Fernando Scheid Mascarenhas' original Visionfs printing script.

See /Unixart/visprint.html for the original that this comes from.

To produce an interface suitable for use with an HPLaserJet over Visionfs, save the text below to a file. We''l call that "/tmp/jprpatch". Then copy /usr/spool/lp/model/HPLaserJet to another name. We'll call it "/usr/spool/lp/model/HPLaserVision". Then, cd to /usr/spool/lp/model and run:



patch -i /tmp/jprpatch HPLaserVision


Get jprpatch (shift-click with most browsers).








####- CUT HERE - or use ftp link above ####
*** HPLaserJet  Sun Nov  1 10:05:25 1998
--- /u/jpr/hpj  Fri Dec  3 16:30:22 1999
***************
*** 1,4 ****
--- 1,36 ----
  :
+ #       @(#) VisionFSp 1.1 99/01/26 
+ #
+ #       Copyright (C) 1999 UniTech Informatica Ltda
+ #                          Jose Fernando Scheid Mascarenhas
+ #                          SCO Premier Reseller - Brasil
+ #                          Todos direitos reservados.
+ #
+ #      VisionFS Printers
+ #
+ #       Options: lp -oraw  file-name ...  Send without CR to CR+LF convertion
+ #
+ #       This script will redirect the print job to the shared printer
+ #       specified in the Description field of mkdev lp.
+ #
+ #       Ex.:
+ #
+ #       mkdev lp
+ #       
+ #       Printer ---> Add Local
+ #       Name: winptr
+ #       Description:  SHARE=//winstation1/epson
+ #       Model: HPLaserVision
+ #       Device: /dev/null
+ #
+ #       ATTENTION: Change the permission of vfscinfo and vfsprint.
+ #
+ #       cd /usr/vision/visionfs/bin/i3sc0325
+ #       chown root vfscinfo vfsprint
+ #       chmod u+s vfscinfo vfsprint

+ #       stuff above was added to stuff below, July 1999, JPRadley

  #     @(#) HPLaserJet 25.3 95/03/27 
  #
  #     Copyright (C) 1991-1995 The Santa Cruz Operation, Inc.
***************
*** 163,168 ****
--- 195,218 ----
        FILTER="${LPCAT} 0"
  fi


  
+ #Set up printer share name from comment file , July 1999, JPRadley
+ PNAME=`basename $0`
+ PDEST=`lpstat -p${PNAME} -l | grep "Description"`
+ PDEST=`expr "${PDEST}" : '.*=\(.*\)'`

+ #Set up VisionFS location
+ if [ -x "/usr/vision/bin/visionfs" ]
+    then
+    VISIONFS="/usr/vision/bin/visionfs"
+ else
+   if [ -x "/usr/local/vision/bin/visionfs" ]
+      then
+      VISIONFS="/usr/local/vision/bin/visionfs"
+   else
+      VISIONFS="visionfs"
+   fi
+ fi

  PATH="/bin:/usr/bin:/usr/lib"
  export PATH


  
***************
*** 500,505 ****
--- 550,558 ----
  shift; shift; shift; shift; shift
  files="$*"


  
+ # July 1999, JPRadley
+ # what follows is now between curly braces to pipe to vision command.
+ {
  # print the banner if no banner not specified and reversing is not specified
  if [ -n "$banner" ]
  then
***************
*** 734,739 ****
--- 787,793 ----
        echo "\033%-12345X@PJL enter language=pcl";;
  *) ;;
  esac
+ } | $VISIONFS print $PDEST -


  
  # RS-232 interface insure all buffers are flushed to printer
  stty raw 9600 -parenb cs8 ixon -istrip clocal <&1 2>/dev/null
####- CUT HERE -####


Publish your articles, comments, book reviews or opinions here!

© December 1999 Jean Pierre Radley. All rights reserved




Comments /Unixart/jprdiff.html


Add your comments

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner

cartoon
Forget the expense of flying to New England. Forget hotel and meals costs.
Installation and light training Boston and New England


Views for this page
Today This Week This Month This Year  Overall
729121973 10,642

/Unixart/jprdiff.html copyright December 1999 Jean Pierre Radley All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Printing
       - Windows
       - OSR5




Unix/Linux Consultants

Your ad here - $24.00 yearly!

http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.









Change Congress


Related Posts