Ahhh! David, thank you so much. That is the info I was looking for! My
server had choked and I had a back up one up. This would have been very
helpful in getting those files over. I will keep this info in case of future
emergency!

Sam

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
David Fetrow
Sent: Thursday, January 22, 2004 12:10 PM
To: LPRng
Subject: Brute Force -- Re: LPRng: Emergency!



On Thu, 22 Jan 2004, Sam Warren wrote:

> You suggest to use "lpc move". However, LPRng was not working. Jobs 
> had stacked up in the queues but I couldn't use LPRng to process any 
> of them in any manor, not even lpc move. So, I had the files in the 
> queues and needed to move them to another server so they would print. 
> How can you achieve that?
>
> Sam

 You can brute force it if you don't mind losing
 track of pretty much everything BUT you do get paper
 with marks on it out the other end.

   Something along the lines of this is wince-inducing
   but does work in the case of lprng on "dead" being
   down, "remote" having a similar printing setup and
   networking still up. Exact directory locations will vary.

   The idea is the output is sitting there in df* files
   so all you have to do is print them on a queue attached
   to a sufficiently similar printer.

   If you are in even worse shape, "nc" (netcat) can often get
   the file into the printer but that is even uglier.

===========================================================

  dead% /etc/init.d/lprng stop

  remote% mkdir /tmp/pbuffer

Then, for each queue: alice, bozo, cary, david, etc:


 dead% scp /var/spool/lpd/alice/df*   remote:/tmp/pbuffer

 remote% lpr -Palice /tmp/pbuffer/df*

        Verify printing happened

 remote% rm -rf /tmp/pbuffer/df*

 dead% rm /var/spool/lpd/alice/df*  /var/spool/lpd/alice/cf*

 Go to next printer until done.


------------------------------------------------------------
David Fetrow
Distributed Computing Services
Applied Physics Lab, Univ. of Washington


----------------------------------------------------------------------------
-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The
address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or
lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
----------------------------------------------------------------------------
-



-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to