Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Open Server 5.0.5 spooler vs hot printer
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dbush3054  
View profile  
 More options Jun 10 1999, 3:00 am
Newsgroups: comp.unix.sco.misc
From: dbush3...@aol.com (Dbush3054)
Date: 1999/06/10
Subject: Open Server 5.0.5 spooler vs hot printer
Running Open Server 5.0.5.  Have always used the same physical printer as a
spooler AND a hot printer (direct access from application). Our application
creates a lock file in /tmp similar to this: /tmp/lp.lck to indicate that the
printer is being used and blocks other users from accessing the printer until
the lock file is remove by the application. In the past we have successfully
modified the 'lp' script to check for the existence of this file and wait if
necessary. The script I modified is in /usr/spool/lp/admins/lp/interfaces
(linked to /var/spool/lp/admins/lp/interfaces). The 'lp' script was created
when we created the spool printer 'lp' from /usr/spool/lp/model/standard).

Does not work in Open Server 5.0.5.  After putting several echo statements in
the script, I have determined that the script file is properly waiting if the
/tmp/lp.lck file exists. I can watch it loop endlessly until the lock file is
removed by the application.  This works when testing because while testing I
was not actually printing from my application, I was just selecting the printer
to create the lock file and then the application is waiting for operator input
(the application hasn't actually sent anything to the printer after creating
the lock file). When I exit the application, it removes the lock file and the
spooler then begins to print.  All is well, right ?  WRONG !!!

If the application attempts to print after the spooler script is 'looping', the
application IMMEDIATELY gets logged off, which removes the lock file in /tmp
and allows the spooled job to print.  I think something before the spooler
script is closing the port, which causes my application to be logged when it
attempts to print.

Any suggestions ???

Thanks in Advance - Dan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google