- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Editing open files (LTSB)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 01:53 AM
06-28-2001 01:53 AM
Editing open files (LTSB)
Can anyone supply any words surrounding what happens of user2 tries to edit/change a file which user1 is already changing.
I have tried it, and it seems that if user1 is editing a file, and at the same time, user2 tries to vi it, the vi session for user2 opens ok with no warning that the files is being changed by user1.
If user1 has made many changes, and exits out, even if user2 makes one character change, user1 loses all his/her alterations.
I am doing something wrong. Should there not be warning to say files is in use ?
Many thanks to all people who spend time supplying some help.
Regards
Russell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 02:01 AM
06-28-2001 02:01 AM
Re: Editing open files (LTSB)
The write operation save the modifications to the original file system postition.
If you really want to do something like this you need something like cvs versioning system or some type of checkout checkin editing system... which will warn and try to intelligently merge in changes.
For s/w development I used to use clearcase, although cvs was also used.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 02:02 AM
06-28-2001 02:02 AM
Re: Editing open files (LTSB)
You need to man ci and rcs cvs for more.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 02:17 AM
06-28-2001 02:17 AM
Re: Editing open files (LTSB)
in normal unix (like vi ) there is no such facility to give warning when the file is already open. while in developement to avoid such things we use lockf()( see man lockf)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2001 04:02 AM
06-28-2001 04:02 AM
Re: Editing open files (LTSB)
If you want to edit /etc/passwd, for the reasons cited above, use 'vipw'. No arguments to the command are necessary. 'vipw' implements a locking mechanism that prevents concurrent edits for the duration of the session that obtains the lock.
...JRF...