Help SCO printer install via command line


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help SCO printer install via command line
# 8  
Old 07-04-2007
Try inserting the following lines into a local printer script in /usr/spool/lp/admins/lp/interfaces, removing the equivalent lines from the original script.
Create an entry for office in /etc/hosts, and remove the line
'cp $file /u/PS2' if you don't want to keep a copy of the print file.
Save a copy of the original script.

###start replacement
copies=$4
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
for file in $files
do
cp $file /u/PS2
echo "root\n" >/tmp/$F
echo "put $file LPT1" >>/tmp/$F
echo "quit" >>/tmp/$F
ftp office </tmp/$F
done
rm /tmp/$F
i=`expr $i + 1`
done
###end replacement

Also "LPT1" may change depending on the brand of "JetDirect" box (ethernet to parallel adapter)

Last edited by jgt; 07-04-2007 at 08:42 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SCO

How do I install a HP Network Printer on SCO admin ?

We have a SCO UnixWare system version 7.1.3, running a front end ERP system. I have 2 new printers I would like to add so that people can print from the ERP system. The two printers are on the network and have IP address's. They are used throughout the day by Windows XP machines, but can not be... (4 Replies)
Discussion started by: Mick_Dundee
4 Replies

2. SCO

How to set up a printer on SCO 5

1. Does all the man pr commands work as expected on SCO 5? 2. Do I have to do some special printer setup to connect the printer to the server before trying to print? Thanks - Much. (1 Reply)
Discussion started by: ggats11
1 Replies

3. UNIX for Dummies Questions & Answers

SCO Printer configuration file

Hello, I am working on Servers running SCO OpenServer 5 and I tend to setup a lot of Servers. I am wondering if mkdev -lp to create printers has a file that I can just copy and paste from an exisiting Server to a new (upgrade) server. I can do this with the hosts and resolv.conf files. ... (1 Reply)
Discussion started by: ewerezak
1 Replies

4. SCO

Cannot add printer to SCO OS 6

:( I am trying to add some printers under SCO OpenServer 6 and everytime I try to open the printer manager it returns a message that reads "Unable to get allowed/denied form users." "Failed to establish user authorizations." When I press the details button is gives me the following Error Details;... (0 Replies)
Discussion started by: RicardoM
0 Replies

5. UNIX for Dummies Questions & Answers

Printer for SCO OpenServer 5

I only know enough about Unix to get me in trouble: I have an old UNIX SCO OpenServer 5 that I am phasing out. It had been connected to an HP laserjet via a serial port connection. As part of the phase out I disconnected and removed the workstations leaving only the server. I didn't think I... (9 Replies)
Discussion started by: rpmaps
9 Replies

6. SCO

How to Install and Configure USB Printer in SCO 6

I'm new in SCO 6. I installed SCO 6 with NIC driver Properly. But I cann't install and Configure USB Printer In SCO 6. Any one help me? email: address deleted by the moderator (0 Replies)
Discussion started by: karzon
0 Replies

7. SCO

Printing from SCO 5.05... to XP Shared Printer

I am having trouble getting our accounting program (on SCO 5.05) to print to a shared windows printer. We used to use a program that took care of this PCI print server or somehting like that. but when XP service pack 2 got installed somethign happened with the permissions and the files would... (2 Replies)
Discussion started by: LarryG
2 Replies

8. UNIX for Dummies Questions & Answers

Printer + Unix (SCO)

Hello, I'm a real noob with Unix. I have to make an installation of a printer, EPSON LQ 2080 (impact printer) on local port ltp, on a Unix SCO 5.7. So....where can I find the driver, and how can I install it on a sco ? Sorry for my english, i'm frenchy ;) Thank you ! (1 Reply)
Discussion started by: kok
1 Replies

9. UNIX for Dummies Questions & Answers

Help !!! How can i install a printer !

I´m sitting hier befor my computer and i have to install a epson stylus printer (parallel) but the problem is i dont know how i can install it...the system is unix -sunos5.7 ....i testet all ..lpr and so on.. i typed in lpr he found no command.... but man lpr works can any body help me... (2 Replies)
Discussion started by: bloerg
2 Replies
Login or Register to Ask a Question
lpc(8)								    Apple Inc.								    lpc(8)

NAME
lpc - line printer control program SYNOPSIS
lpc [ command [ parameter(s) ] ] DESCRIPTION
lpc provides limited control over printer and class queues provided by CUPS. It can also be used to query the state of queues. If no command is specified on the command-line, lpc will display a prompt and accept commands from the standard input. COMMANDS
The lpc program accepts a subset of commands accepted by the Berkeley lpc program of the same name: exit Exits the command interpreter. help [command] ? [command] Displays a short help message. quit Exits the command interpreter. status [queue] Displays the status of one or more printer or class queues. LIMITATIONS
Since lpc is geared towards the Berkeley printing system, it is impossible to use lpc to configure printer or class queues provided by CUPS. To configure printer or class queues you must use the lpadmin(8) command or another CUPS-compatible client with that functionality. COMPATIBILITY
The CUPS version of lpc does not implement all of the standard Berkeley or LPRng commands. SEE ALSO
cancel(1), cupsaccept(8), cupsenable(8), lp(1), lpr(1), lprm(1), lpstat(1), http://localhost:631/help COPYRIGHT
Copyright 2007-2011 by Apple Inc. 3 November 2008 CUPS lpc(8)