(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



We no longer offer ftp downloads. If there is a file you need referenced here, please contact me by email and I will get it to you.

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
 
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





More Articles by Jean Pierre Radley




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/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

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server






More:
       - Printing
       - Microsoft
       - OSR5


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress