Re: redirecting printing

From: Bruce Whittaker (bwhittak@ENERGY.COM.AU)
Date: Sun May 18 2003 - 21:22:03 EDT


HI Shawn,

One method is to set up a print filter type script as a front end print
queue. The script itself could determine the time and then redirect the
print job to the appropriate printer queue.

Cheers,

Bruce Whittaker,
CASS Support,
Extension 34193
External (02) 9269 4193.
----------------------------------------------------------------------------------------
This e-mail may contain confidential or privileged information. If you
have received it in error, please notify the sender immediately via return
e-mail and then delete the original e-mail. EnergyAustralia has collected
your business contact details for dealing with you in your business
capacity. More information about how we handle your personal information,
including your right of access is contained at http://www.energy.com.au.
----------------------------------------------------------------------------------------

Shawn Bierman <BiermanS@METHODISTHEALTH.ORG>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
17/05/2003 04:27
Please respond to IBM AIX Discussion List

        To: aix-l@Princeton.EDU
        cc:
        Subject: Re: redirecting printing

We're currently printing using streaming printing from our patient care
application middleware to AIX queue to the print server (HP Jet D's). Our
current method of redirecting print jobs is to alias the printer dns name
in the /etc/hosts file to the new IP address and then remove the alias
when the printer is repaired. Now we have a situation where the current
app can use a rule to reroute the printer without any OS intervetion.
We're leaving that app and still need to provide a solution where the
printer can be routed and rerouted automatically based on a time interval.

01tcp101 10.10.2.10 #normal address in DNS

etc/host
10tcp101 10.10.2.11 #reroute in host file for repair

>>> Simon.Green@EU.ALTRIA.COM 5/16/03 11:13:06 AM >>>
What sort of printers are these? Remote or local?
Are you printing from AIX, or from some application?

I think it might be possible to mess around with /etc/qconfig - that would
work OK for remote print queues I'm fairly sure - but my first thought
would
be to pass the print queue to use to the program as a parameter, or
perhaps
have a script which you call from within various scripts/programs which
could check the time and pass back a printer name. (There are several
possibilities along those lines, depending on exactly what you're doing.)

If you're printing from an application such as SAP, which wouldn't be
amenable to having a print queue as a parameter, you could set up a dummy
print queue, which is permanently held, then have a background job which
continually checks it and re-queues jobs to the correct printer.

Simon Green
Altria ITSC Europe s.a.r.l.

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will not be appreciated.

> -----Original Message-----
> From: Shawn Bierman [mailto:BiermanS@METHODISTHEALTH.ORG]
> Sent: 16 May 2003 16:52
> To: aix-l@Princeton.EDU
> Subject: redirecting printing
>
>
> We have a need to redirect print jobs from PrinterA to
> PrinterB at 6:00am and then at 6:00pm restore the redirect so
> we are printing back to PrinterA, until 6:00am again.
>
> Is there a way to do this with perhaps a cronjob?



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:50 EDT