Help to enchance unix tool..


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Help to enchance unix tool..
# 1  
Old 12-18-2007
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...Smilie
# 2  
Old 12-18-2007
here is a good starter for you
# 3  
Old 12-18-2007
Sorry yaar sawant i have tried but its not working..still the file open with editor.
# 4  
Old 12-18-2007
Quote:
Originally Posted by Nagabhushan
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  
Old 12-18-2007
you probably need make use of fcntl

for example, if you are using Perl, then refer to this
# 6  
Old 12-18-2007
Quote:
Originally Posted by Yogesh Sawant
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.
# 7  
Old 12-18-2007
is there any way to stop changing the file using editors...except

permissions...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX tool on MacOS that can increase resolution of a file

hi, I am searching for a native tool on MacOS that can increase the resolution of a group of image files whose aspect ratios (file width versus height) vary widely. There are numerous files so I don't wish to do this manually. Someone suggested the sips command with the resampling option but... (5 Replies)
Discussion started by: Godtookapicture
5 Replies

2. UNIX for Dummies Questions & Answers

Can we build a tool for Windows to retrieve data from UNIX servers (putty console)

Hi Friends, Is it possible to build a windows tool ( a java applet maybe? ) which can retrieve data and display after performing certain commands on unix servers ( simple grep / script output) after logging into putty console. I am on a company server so please bear that in mind. I might have... (23 Replies)
Discussion started by: srkmish
23 Replies

3. UNIX for Dummies Questions & Answers

tool scan my network and get all Unix servers

Hello, is there any tool where I can scan my netwrk and get all types of Unix servers? (2 Replies)
Discussion started by: fsmadi
2 Replies

4. UNIX and Linux Applications

Tool for Convert XLS into CSV in UNIX

Hi I wanted to convert some XLS files into CSV format in my UNIX box. Unix box is handling very important data which are related to data warehouse.It is fully optimized by installing minimum packages since server need more resources to handle reports generating. Just for convert XLS files... (6 Replies)
Discussion started by: luke_devon
6 Replies

5. Solaris

Ftp tool for unix

I am looking for a unix based ftptool. solaris 5.8 version (5 Replies)
Discussion started by: kgallagh
5 Replies

6. Red Hat

tool for migration from HP Tru64 UNIX to Linux Red Hat 5

Hi, We are going to migrate our Dataware House system from HP Tru64 UNIX to Red Hat Linux 5. There are more than 500 shell scripts which are written in ksh. The schedule is very tight. So, I want to learn whether there is a tool that can help us find the incompatible shell scripts in... (2 Replies)
Discussion started by: franksubramania
2 Replies

7. Shell Programming and Scripting

Test automation tool for UNIX ??

I am searching for a automation testing tool which I can use for most of the UNIX platforms (AIX, Linux, HP UX, Solaris). The installation process of the application in all platforms is almost same. Are you aware of any automation tool (like WinRunner for Windows) to solve my problem? (5 Replies)
Discussion started by: unmanju
5 Replies

8. Infrastructure Monitoring

Unix Monitoring tool

Hi all, Please let me know the most using, perfect unix monitoring tool and the link for downloading the tool. It should have network server monitoring on all aspect(working users, memory usage, working services, disk space etc). Thanks Rath (3 Replies)
Discussion started by: ratheeshp
3 Replies

9. Infrastructure Monitoring

Free monitoring tool on Unix

Dear All, Any one used free monitoring tool on HP machines (unix) , what is the most easy to install and configure (MRTG, Cricket, or Zabbix) ? Thanks in advance. (1 Reply)
Discussion started by: salhoub
1 Replies

10. UNIX for Dummies Questions & Answers

Archival Tool for UNIX

Hi All, Need to get the information if there is any tool on Unix for Archiving and retrival of documents automatically. Having the capbalilty to integrate with other systems. And provide the APIs which can be called from other Systems to facilitate automatic Archival and Retrieval. Thanks &... (7 Replies)
Discussion started by: sanjeev0915
7 Replies
Login or Register to Ask a Question