Re: [OVC-demo-team] Problems with RII

From: Jan Karrman <jan_at_it_dot_uu_dot_se>
Date: Thu Mar 25 2004 - 16:12:08 CST

On Thu, 25 Mar 2004, Arthur Keller wrote:

> At 5:37 PM +0100 3/25/04, Jan Karrman wrote:
> >
> >printcommand = "/bin/lp -d pr4100"
>
> I assume it's replaced with "/usr/bin/lpr" as "which" reports for "lpr".
>

Yes, and if you want to send to a specific printer queue, it should
be something like "/usr/bin/lpr -P myqueue".

> >
> >and to make this part unconditional:
> >
> > if self.printps:
> > try:
> > lp = os.popen(printcommand, "w")
> > lp.write(p.GetPostScript())
> > lp.close()
> > except (IOError, EOFError), e:
> > print e
> >
> >/Jan
>
> Pardon my ignorance, but please tell me what it was before and what
> it should be changed to? Should it instead be done through some
> "debug" or "print" switch? Thanks.
>

Actually, you need not change this part of the code. You can get the
script to print by starting it with the command line option -p. But
I will reverse the logic so that it will print if started without
command line options, and inhibit printing using an option. Otherwise
it would be embarrassing if it didn't print at the demo because one
forgot to start the script with the print option.

/Jan
==================================================================
= The content of this message, with the exception of any external
= quotations under fair use, are released to the Public Domain
==================================================================
Received on Thu Apr 1 02:40:34 2004

This archive was generated by hypermail 2.1.8 : Thu Apr 01 2004 - 02:40:37 CST