Modifying serial printers device


 
Thread Tools Search this Thread
Operating Systems SCO Modifying serial printers device
# 1  
Old 03-27-2012
Modifying serial printers device

I am trying to change one of my serial printers from /dev/ttyr002 to /dev/ttyr014:
Code:
lpstat -s
device for check3: /dev/ttyr002  
device for check4: /dev/ttyr002

I changed the tty setting for check3 in:
Code:
/etc/printcap
/var/spool/lp/admins/lp/printers/check3

to /dev/ttyr014
Then I get:
Code:
lpstat -s
device for check3: /dev/ttyr014  
device for check4: /dev/ttyr002

Then when I test a print
Code:
cal | lp -d check3

It still prints to the /dev/ttyr002 printer. What am I missing?
# 2  
Old 03-27-2012
These look like Digiboard terminal names. Check to see if the printer device has moved using "mpi".
# 3  
Old 03-27-2012
Actually they are RIO remote serial boxes. Its a card in the server that they plug into and they are little boxes with 8 serial ports on them. I already used the config.rio utility to map the port I want to the ttyr014. I just can't figure out how to tell SCO that check3 should point to ttyr014 instead of ttyr002.

No "mpi" here

Last edited by herot; 03-27-2012 at 07:55 PM..
# 4  
Old 03-27-2012
Try:
scoadmin->printers->printer_manager.
Arrow down to check3, press the space bar to mark the line, then tab back to the top to settings and arrow down to connection, change the device to /dev/tty4014 and save.
# 5  
Old 03-28-2012
Well, that def changed the dev to /dev/ttyr014 (verified with a lpstat -s). I will have to verify that it is going to the correct printer tomorrow when I get back in the office. NOW, can you tell me what I missed when trying to do that manually? What file did scoadmin change?SmilieSmilie


The reason I need to know is because not all of the printers that I am planning on changing are Local. scoadmin will not let you change dev's on remote printers... unless you find the file and change it with vi.

---------- Post updated 03-28-12 at 08:04 AM ---------- Previous update was 03-27-12 at 08:58 PM ----------

Well, even after using scoadmin to make the tty change, it still prints to the wrong tty. Do I need to do a lpshut -> lpstart?

---------- Post updated at 12:58 PM ---------- Previous update was at 08:04 AM ----------

Nevermind lpshut, lpsched did not help.

---------- Post updated at 02:14 PM ---------- Previous update was at 12:58 PM ----------

***SOLVED***

PREVIOUS admin had labeled the RIO's backwards so sticker port 8 was actually port 1... etc...

Thanks for help.

BTW, you can edit the files manually. You just have to do a lpstop , lpsched after.Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read line from serial device with BASH

I'm new to Linux (Ubuntu 16.04), and very new to BASH scripting. I have a Numato 8-channel USB GPIO device, which is a DAQ that appears in the system as a serial port. In Linux it appears as ttyACM0. I can easily manipulate a GPO with, for example: echo "gpio set 7" > /dev/ttyACM0 ...followed... (12 Replies)
Discussion started by: Chalk-X
12 Replies

2. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

3. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

4. Solaris

"Device busy" When Reopening Serial Port

Any help much appreciated. I am a Java developer, not a Solaris adept. I'm having an issue reopening serial port with the Java app I am developing. I develop in Windows and deploy the app on Solaris 10 (Sunfire X4170 with Xeon.) On the target machine my app uses the two serial ports... (11 Replies)
Discussion started by: Jim Ryan
11 Replies

5. Programming

Problem with read data from serial device

I have problem with C programming. I want to send & receive data through serial communication. I send data(command) to device to get data from device but when receive data, it can't get altogether of data. It get only some data. What should I do to get altogether of data? If all of... (7 Replies)
Discussion started by: noppon_s
7 Replies

6. Ubuntu

Ubuntu 9.04 Serial application to telnet to serial device

Hello! I am working on an application which reads environmental instruments which have serial ports. The application requires a serial port to be present to talk to the device (i.e. /dev/ttyS0 ). In some instances the environmental devices will be 100's of yards away from the computer, so a... (5 Replies)
Discussion started by: mvona
5 Replies

7. Linux

Device serial number

Hey! I'm trying to figure out a sollution for a problem I have at my company with an Iomega MiniMax 500 GB USB disk. If i run cat /proc/bus/usb/devices I get this information: T: Bus=01 Lev=02 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00... (2 Replies)
Discussion started by: noratx
2 Replies

8. Programming

Accessing device with Prolific USB-serial controller.

I am trying to access DG-100 gps logger on Mac OS X with POSIX API. The device uses a Prolific usb-serial controller, and connect to the usb port on my mac. After I install the Prolific driver, it shows up as /dev/tty.usbserial and /dev/cu.usbserial. The vendor has published the data format. So... (1 Reply)
Discussion started by: monkeybiz
1 Replies

9. UNIX for Dummies Questions & Answers

serial port device path

hi. Im trying to install a switch. And the manual says i should type a command including a SerialPortDevicePath. which is the filepath to serial port used for connection. However.. nothing about how to find this info. Could anyone help me where to find this path? thx mr.T (6 Replies)
Discussion started by: tyskertøs
6 Replies
Login or Register to Ask a Question