Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.os2.programmer.misc > #1302
| From | "Alex Taylor" <mail.me@reply.to.address> |
|---|---|
| Newsgroups | comp.os.os2.programmer.misc |
| Subject | Creating a printer port, help needed |
| Date | 2011-02-01 04:06 -0600 |
| Organization | Newscene Usenet News Service, http://www.newscene.com/ |
| Message-ID | <mdq090pMZSKk-pn2-9xyvKPFMBBTP@localhost> (permalink) |
I'm trying to create a printer install GUI, mainly for CUPS printing at the moment (although I may extend it to be more general later on). It almost works, but the problem I've run into is installing a printer port programmatically. The problem is this: I can create a new port (e.g. 'CUPS2') by adding the right entries to OS2SYS.INI, but the port is unusable until the system is rebooted. (Before that, the printer object shows an error message that "printer is not accepting data".) I've also tried using the OS/2 response-file printer installer (which I use to create the actual queue and printer object) to create the port. Unfortunately, the same thing happens. Finally, I tried writing a simple program that uses SplCreatePort, and calling that from my script. Same result. Of course, creating a port works fine the "normal" way, i.e. going through the PM printer dialogs. But that's a non-starter for an automated installer, obviously. I strongly suspect that SOMETHING in Presentation Manager needs to get flagged when a new port is added, that To make matters worse, I've found that after I've created ports in this way, opening a printer object's properties notebook has a nasty tendency to randomly trap the system. Here's a REXX script containing my attempted logic: http://users.socis.ca/~ataylo00/programming/rexx/cupsprnt.cmd It's written to use CUPS ports at the moment, but changing that to, say, SLPR or SMB ports should be as trivial as changing a couple of lines. -- Alex Taylor Fukushima, Japan http://www.socis.ca/~ataylo00 Please take off hat when replying.
Back to comp.os.os2.programmer.misc | Previous | Next — Next in thread | Find similar
Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-01 04:06 -0600
Re: Creating a printer port, help needed "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-02-04 10:13 +0100
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-07 21:50 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-09 08:45 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-07 21:56 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-04 05:28 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-03 04:56 +0100
Re: Creating a printer port, help needed "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-02-04 10:14 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-03 05:27 -0600
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-03 05:34 -0600
Re: Creating a printer port, help needed "Ruediger Ihle" <NOSPAM$R.Ihle@S-t.De> - 2011-02-03 16:43 +0000
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-11 01:00 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-08 00:44 +0100
Re: Creating a printer port, help needed "A.D. Fundum" <what.ever@neverm.ind> - 2011-02-13 18:52 +0100
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-09 00:55 +0100
Re: Creating a printer port, help needed "A.D. Fundum" <what.ever@neverm.ind> - 2011-02-02 18:55 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-02 08:07 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-03 05:02 +0100
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-03 05:07 +0100
csiph-web