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
rlpstat(1M)															       rlpstat(1M)

NAME
rlpstat - print status of LP spooler requests on a remote system SYNOPSIS
printer] user] [id]... DESCRIPTION
reports the status of the specified jobs or all requests associated with the specified users on the specified printer. At least one id or the name of a printer must be specified. For each request submitted (by command -- see lp(1)) reports the request ID, user's name, total size of the request, date of the request, and, if it is being transferred, the device. This command is intended to be used only by the spool system in response to the command and should not be invoked directly (see lpstat(1)). Options recognizes the following options and command-line arguments: Status is requested on the specified printer. Status is requested on all requests for the user who executed the command on the specified printer (see the option). You can repeat the option to specify more users. The maximum number of users that can be specified is 50. id Status is requested on the specified request IDs (as returned by All the request IDs must be for the same printer. The maximum number of request IDs that can be specified is 50. AUTHOR
was developed by the University of California, Berkeley, and HP. FILES
SEE ALSO
enable(1), lp(1), lpadmin(1M), lpsched(1M), lpstat(1), rcancel(1M), rlp(1M), rlpdaemon(1M). rlpstat(1M)