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!


M3IP inc.
© December 1999 Jean Pierre Radley. All rights reserved





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





Views for this page
Today This Week This Month This Year  Overall
715671,277 10,946

/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 - $48.00 yearly!

http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.


http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!



Twitter
  • Nov 19 17:29
    Cold today.. walked from South Station to Back Bay and later returned. Fingers hurt.. head hurt.. nice walk though :-)
  • Nov 19 17:28
    My voice mail suddenly gave me a pile of deleted messages - causing me confusion and stress as I thought things I fixed were broken again.









Change Congress


Related Posts