The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-04-2005
canman canman is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 6
Question Lock File

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
  #2 (permalink)  
Old 05-04-2005
solaris-ninja solaris-ninja is offline
Registered User
  
 

Join Date: May 2005
Posts: 12
More information in the issue is apreciate, what is happening? Can you state the problem more clear? When this starting to happen? as a result of what this is happening? What the logs show?
  #3 (permalink)  
Old 05-05-2005
canman canman is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 6
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
  #4 (permalink)  
Old 05-05-2005
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Anything in the lock file? or is it an empty file? Can you tell if the 8c001 is specific to a printer (doe the same printer always produce the lock file with the same name?)
  #5 (permalink)  
Old 05-06-2005
canman canman is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 6
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0