Re: redirecting printing

From: Ron Schwingel (rschwing_at_NDSLTD.COM)
Date: 05/20/03

  • Next message: Holger.VanKoll_at_SWISSCOM.COM: "Re: kerberos question"
    Date:         Tue, 20 May 2003 09:24:46 -0600
    To: aix-l@Princeton.EDU
    
    

    You could create two separate hosts files. The default "hosts" file would
    be the 6:00am to 6:00pm hosts file. The other "hosts" file (hosts.6pm) would
    be an exact copy of the original, but contain the alternate print queue's ip
    address. Create two cron entries, one that executes at 6:00pm and renames
    the default "hosts" file to "hosts.6am" and the "hosts.6pm" to "hosts". The
    second cron entry would execute at 6:00am and rename the current "hosts"
    file back to "hosts.6pm" and the "hosts.6am" file back to "hosts".

    Ron Schwingel
    Technical Support

    NDS Solutions
    303.755.4411(phone)
    303.755.4545(fax)
    rschwing@ndsltd.com

    -----Original Message-----
    From: Shawn Bierman [mailto:BiermanS@METHODISTHEALTH.ORG]
    Sent: Friday, May 16, 2003 12:28 PM
    To: aix-l@Princeton.EDU
    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?


  • Next message: Holger.VanKoll_at_SWISSCOM.COM: "Re: kerberos question"

    Relevant Pages

    • Re: printing issues
      ... Either the Port is not available or the Print Queue is ... You can add this if it is gone StringValue LPT1: ... nothing is printing on my HP Laserjet 6P. ... > the print queue, but nothing ever seems to make it to the printer. ...
      (microsoft.public.win2000.printing)
    • Re: printing issues
      ... Either the Port is not available or the Print Queue is ... You can add this if it is gone StringValue LPT1: ... nothing is printing on my HP Laserjet 6P. ... > the print queue, but nothing ever seems to make it to the printer. ...
      (microsoft.public.win2000.hardware)
    • Re: Cant print to Windows printer
      ... Printing to it generates no errors on FC4. ... > manager on the XP shows the document spooling, ... > to clear the print queue to allow new print jobs. ... -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ...
      (linux.redhat)
    • Re: Q) Using cups from Windows-2000 machine
      ... On 02-Apr-2004, Ronny Haryanto wrote: ... >> In cups, create a new print queue for your printer, and ... So my Windows XP printing goes directly to CUPS ... Add printer in Windows XP with IPP ...
      (Fedora)