🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.admin
3 messages
3 total messages Started by Susanne B. Ramsey Tue, 26 Jan 1993 23:55
network printers..???
#201
Author: Susanne B. Ramsey
Date: Tue, 26 Jan 1993 23:55
50 lines
1922 bytes
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
	NAME="Generic Postscript"
	TYPE=PostScript
	segid=$!
	name=$2i
	title="$3"
	copies=$4 
	options="$5"
	shift; shift; shift; shift; shift
	files="$*"
	i=1
	while [ $i -le $copies ]
	do
       		 for file in $files
       		 do
       		         lpr -Pqmsps "$file"
       		 done
       		 i=`expr $i = 1`
	done
	exit 0
 
Note if it is NOT a PostScript printer or queue then NAME is blank and TYPE is
Dumb.  

I then do a lpshut; lpadmin -p<printer> -v/dev/null -m<modle>; lpsched; accept;
enable <printer>

My question is - is there a easier/better way to do this.. I am told that SGI
does not support printers that are not on other SGIs or local - How do YOU
access printers on SUNs or that have their own network interface...??? Is there
a better file to be using in the model directory..???

Thanks
Susanne Ramsey
--
 Susanne B. Ramsey	     Lawrence Livermore National Laboratory
 7000 East Avenue L-630	  |  (510) 423-9530
 Livermore Ca 94550	  |  sbr@llnl.gov
_____________________________________________________________________
Fertility is hereditary.  If your parents didn't have any children, neither 
will you.
Re: network printers..???
#202
Author: Susanne B. Ramsey
Date: Wed, 27 Jan 1993 00:24
33 lines
1479 bytes
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

LOTS of stuff deleted....


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

any clues as to why...???

Thanks again 

Susanne Ramsey


--
 Susanne B. Ramsey	     Lawrence Livermore National Laboratory
 7000 East Avenue L-630	  |  (510) 423-9530
 Livermore Ca 94550	  |  sbr@llnl.gov
_____________________________________________________________________
Fertility is hereditary.  If your parents didn't have any children, neither 
will you.
Re: network printers..???
#220
Author: 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'.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads