🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.admin
Article #220

Re: network printers..???

#220
From: Ken-ichi Oohara
Date: Thu, 28 Jan 1993 07:50
61 lines
2228 bytes
In article <ramsey.728092533@moonshine> ramsey@sundance.llnl.gov (Susanne B. Ramsey) writes:

>   I have tried several ways of accessing from the SGI some printers that are
>   either on non-SGI systems or have network interfaces.. I am doing this so 
>   that users can print from the Workspace and not have to worry about issuing
>   commands at the command line..   
>
>   The only success I have had is by doing the following:
>
>   creating a file with the following in /usr/spool/lp/model
>
>	   #! /bin/sh
             :
             :
>	   files="$*"
>	   i=1
>	   while [ $i -le $copies ]
>	   do
>		    for file in $files
>		    do
>			    lpr -Pqmsps "$file"
>		    done
>		    i=`expr $i = 1`
>	   done
>	   exit 0
>
>

In article <ramsey.728094282@moonshine> ramsey@sundance.llnl.gov (Susanne B. Ramsey) writes:

>   Another problem related to this that I am having...
>
>   when I tried to send a file to one of the "network" printers I got into
>   some sort of a loop and started sending out about 900 copies of /etc/printcap

I am using the similar way with a shell script a bit different from
Susanne's; like

	#!/bin/sh
	#
	NAME=
	TYPE=Dumb
	seqid=$1
	name=$2
	title="$3"
	copies=$4
	options="$5"
	shift; shift; shift; shift; shift
	files="$*"

	lpr -Plpr_printer -#$copies $options $files
	exit 0

This will call 'lpr' once even if I need 900 copies. 
I can specify lpr options (except -m option) as -o'lpr-options'
like

    % lp -dlpr_printer -o'-p -T test' files

Even if you add lpr's -m option, you will *not* recieve a mail
upon completion, but the mail will be sent to user 'lp'.
Technical Details
Message-ID: <OOHARA.93Jan28165032@anima.kek.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!news.u-tokyo.ac.jp!s.u-tokyo!kekux!oohara
References: <ramsey.728092533@moonshine>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!news.u-tokyo.ac.jp!s.u-tokyo!kekux!oohara
From: oohara@anima.kek.ac.jp (Ken-ichi Oohara)
Newsgroups: comp.sys.sgi.admin
Subject: Re: network printers..???
Message-ID: <OOHARA.93Jan28165032@anima.kek.ac.jp>
Date: 28 Jan 93 07:50:32 GMT
References: <ramsey.728092533@moonshine>
Sender: news@kekux.kek.ac.jp (USENET News System)
Organization: KEK, Tsukuba, Japan
Lines: 61
In-Reply-To: ramsey@sundance.llnl.gov's message of 26 Jan 93 23: 55:33 GMT
Nntp-Posting-Host: anima