![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lock a file from being deleted? | Darren Taylor | Shell Programming and Scripting | 3 | 03-10-2008 06:07 AM |
| Lock a file. AND Wait if file is locked | sunil_neha | Shell Programming and Scripting | 2 | 07-13-2004 11:40 AM |
| how to lock keyboard without using lock command | dianayun | UNIX for Dummies Questions & Answers | 7 | 06-21-2002 07:05 PM |
| lock file! | sskb | UNIX for Dummies Questions & Answers | 4 | 10-24-2001 06:10 PM |
| How to lock a file in unix? | tammy_schmuki | UNIX for Dummies Questions & Answers | 1 | 05-25-2001 01:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
We have a lock file being created called lck8c0001 created in Unixware 2.1.2. This is locking a printer. According to some websites, 8c0001 relates to the device name. How does one link 8c0001 to those devices listed in the /dev folder? I have done a ps -lp for all printers and have not found information 8c0001 in the ADDR field. Thanks |
|
||||
|
A third party party application is locking a printer when certain print options are selected, thereby creating a lck file. This application has occasionally crashed, leaving this lck file present. Therefore the lock on this printer is still present and no one else from this application can print to this printer. However, the only way we have at present is to remove the lock, kill the printers, and then restart them.
As these lock files are always called lck followed by something like 8c001. Is there anyway of linking this 8c001(device name?) to the process id of this device allowing us to write a script to do this. Thanks |
|
||||
|
The lock file contains a process id.
This process id relates back to the option that the user chose to start the initial print from the application. This process is one that actually crashed out in the application. The alphanumeric string that appears after lck such as 8c001 does change. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|