The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Test automation tool for UNIX ?? unmanju Shell Programming and Scripting 5 02-27-2009 04:40 AM
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server madhunk UNIX for Dummies Questions & Answers 5 01-31-2008 01:30 PM
Free monitoring tool on Unix salhoub UNIX for Advanced & Expert Users 1 07-05-2005 07:37 AM
Tool top daemon SUN Solaris 2 08-04-2004 10:36 PM
Archival Tool for UNIX sanjeev0915 UNIX for Dummies Questions & Answers 7 10-23-2001 04:07 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 12-18-2007
Nagabhushan Nagabhushan is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 12
Help to enchance unix tool..

HI friends ,

I was assigned to enhance tool in unix solaris...the tool is totaly developed on shell and perl scripts...

The tool is used to change control files....The users are of certain group..
due to many users some people are changing these control files directly by using editors ....they are not using tool to change control files.

In the tool it has feature that it will not allow multiple user to write at a time.
But other user can change by using editors ...So we need to stop this...

Please help me in this regard....

I thought file locking...but dont know how to implement...
  #2 (permalink)  
Old 12-18-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
here is a good starter for you
  #3 (permalink)  
Old 12-18-2007
Nagabhushan Nagabhushan is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 12
Sorry yaar sawant i have tried but its not working..still the file open with editor.
  #4 (permalink)  
Old 12-18-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by Nagabhushan View Post
Sorry yaar sawant i have tried but its not working..still the file open with editor.
From the link above...
Quote:
Open files and programs are not automatically locked in UNIX.
If a program does not care about locks it will not abide by them. Locks are an afterthought in UNIX, not fundamental like in Windows NT.
  #5 (permalink)  
Old 12-18-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
you probably need make use of fcntl

for example, if you are using Perl, then refer to this
  #6 (permalink)  
Old 12-18-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by Yogesh Sawant View Post
you probably need make use of fcntl

for example, if you are using Perl, then refer to this
But they don't stop user "joe" using editor "fred" to edit a file and ignore the locks.
Closed Thread

Bookmarks

Tags
fcntl, file locking

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 03:27 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