Sponsored Content
Operating Systems AIX Locking a file when using VI to prevent multiple-edit sessions by diff users Post 302096265 by dangral on Tuesday 14th of November 2006 04:38:56 PM
Old 11-14-2006
Like cbkihong said, revision control is the way to go. You could even use a built-in system like rcs.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Prevent file from being mailed multiple times from a job

We have a ksh which runs once every 15 minutes. Based on a certain condition (for invalid data) we are spooling a file and if the file is of length greater than 0 bytes, then we are mailing this file to a group of users. Upon receiving the file, users correct the data so that on its next run the... (2 Replies)
Discussion started by: Sree_2503
2 Replies

2. AIX

Users Are Getting Kicked out of 2Hr Sessions

:confused:We've had close to 100 calls about users logging into our AIX server. The users open up about 3 to 5 sessions in the server. After 2hrs of idle time, users are frozen or stuck in the IBM UniVerse Application. We (system administrators) have been blaming the application (which we'll take... (2 Replies)
Discussion started by: Sarccastik Dude
2 Replies

3. Solaris

Prevent users logging in as root

I would like to know how to prevent users connecting to a server using SSH as root. I would still like them to be able to login with their username and then change to su. But I would like to prevent them logging in directly as root. I have searched the forum and read that I should set... (3 Replies)
Discussion started by: Sepia
3 Replies

4. Solaris

locking a users file as root

hello, I have a challenge to find a way to lock down a file in a user's home directory, such that a user can NOT modify, rename, move, delete, etc. The solution needs to be deployable without, for example, having to switch from unix to windows, etc We are using NFS. We want to lock the... (1 Reply)
Discussion started by: jvmagic
1 Replies

5. UNIX for Advanced & Expert Users

Samba - prevent locking of selected files over network?

I have a samba server which is serving a mixture of files. One main application uses a data file and creates a temporary working execution file at startup and holds that temp execution file open for the duration of the program's execution (but doesn't use the file at all after initial startup). ... (0 Replies)
Discussion started by: humbletech99
0 Replies

6. UNIX for Dummies Questions & Answers

In vi, any way to prevent :edit from repositioning the screen?

I am working on a project where I need to make many changes to files, both inside and outside of the vi editor. I make small changes manually right in vi, and I have a script that I run from another session that I use to make bigger changes to the files using sed. After running my script from... (2 Replies)
Discussion started by: RickS
2 Replies

7. HP-UX

Users getting kicked out of sessions

We have an old (11.11) HP-UX system. A couple of months ago, our customers started having problems with their logins. After sitting idle for roughly an hour, their screens would lock up and they would be kicked out of the system. This happens if they are in the application or on the command... (2 Replies)
Discussion started by: slkdnichols
2 Replies

8. Shell Programming and Scripting

Need Help to Edit multiple column of a file

Hello Team, I want to know if there is any one liner command , using which I can edit multiple column of a file. input file input.txt (comma separated), taran, 12.45, uttam, 23.40, babay karan, 12.45, raju, 11.40, rahulg I want to update, 2nd and 4th column, but want all those column... (8 Replies)
Discussion started by: Uttam Maji
8 Replies

9. AIX

Telnet sessions stay as idle users

Hi The telnet sessions stay as idle users. It is not getting kicked out. Please advise what could be the issue. only when we reboot the server these telnet sessions goes. Below is the current output from the server. we rebooted the server three days ago: pmut6:/> uptime 04:21PM... (8 Replies)
Discussion started by: newtoaixos
8 Replies

10. UNIX for Beginners Questions & Answers

Find number of ACTIVE SSH putty sessions, excluding where the user hopped on to a diff server

Hi - If iam logged on to server A, on 4 putty windows using SSH ... and out of these 4 logged-in sessions, in one of the sessions if i did SSH from server A to server B; i would now have 4 putty windows sessions ... of which 3 are actively logged on to Server A while 1 putty window is actively... (2 Replies)
Discussion started by: i4ismail
2 Replies
ci(1)							      General Commands Manual							     ci(1)

NAME
ci - check in RCS revisions SYNOPSIS
[options] file... DESCRIPTION
stores new revisions into RCS files. Each file name ending in is treated as an RCS file; all others are assumed to be working files. deposits the contents of each working file into the corresponding RCS file (see rcsintro(5)). If the RCS file does not exist, creates it and deposits the contents of the working file as the initial revision. The default number is "1.1". The access list is initialized to empty. Instead of the log message, requests descriptive text (see the option below). An RCS file created by inherits the read and execute permissions from the working file. If the RCS file exists, preserves its read and execute permissions. always turns off all write permissions of RCS files. The caller of the command must have read/write permission for the directories containing the RCS file and the working file, and read per- mission for the RCS file itself. A number of temporary files are created. A semaphore file is created in the directory containing the RCS file. always creates a new RCS file and unlinks the old one; therefore links to RCS files are useless. For to work, the user's login must be in the access list unless the access list is empty, the user is the owner of the file, or the user is super-user. Normally, checks whether the revision to be deposited is different from the preceding one. If it is not different, either aborts the deposit (if is given) or asks whether to abort (if is omitted). A deposit can be forced with the option. If sufficient memory is not available for checking the difference between the revision to be deposited and the preceding one, then either or values can be increased. For each revision deposited, prompts for a log message. The log message should summarize the change and must be terminated with a line containing a single "." or a control-D. If several files are being checked in, asks whether or not to reuse the log message from the pre- vious file. If the standard input is not a terminal, suppresses the prompt and uses the same log message for all files (see option below. The number of the deposited revision can be given with any of the options or (see option below). To add a new revision to an existing branch, the head revision on that branch must be locked by the caller. Otherwise, only a new branch can be created. This restriction is not enforced for the owner of the file, unless locking is set to (see rcs(1)). A lock held by someone else can be broken with the command (see rcs(1)). Options Forces a deposit. The new revision is deposited even if it is not different from the preceding one. Searches the working file for keyword values to determine its revision number, creation date, author, and state (see co(1)), and assigns these values to the deposited revision, rather than computing them locally. A revision number given with a command option overrides the number in the working file. This option is useful for software distribution. A revision that is sent to several sites should be checked in with the option at these sites to preserve its original number, date, author, and state. Works like except it performs an additional for the deposited revision. Thus, the deposited revision is immediately checked out again and locked. This is useful for saving a revision although one wants to continue editing it after the check-in. Uses the string msg as the log message for all revisions checked in. Assigns the symbolic name name to the checked-in revision. prints an error message if name is already assigned to another number. Same as except that it overrides a previous assignment of name. Quiet mode; diagnostic output is not printed. A revision that is not different from the preceding one is not deposited unless is given. Assigns the revision number rev to the checked-in revision, releases the corresponding lock, and deletes the working file. This is the default. If rev is omitted, derives the new revision number from the caller's last lock. If the caller has locked the head revision of a branch, the new revision is added to the head of that branch and a new revision number is assigned to the new revision. The new revision number is obtained by incrementing the head revision number. If the caller locked a nonhead revision, a new branch is started at the locked revision, and the number of the locked revision is incremented. The default initial branch and level numbers are 1. If the caller holds no lock, but is the owner of the file and locking is not set to strict, the revision is added to the head of the trunk. If rev indicates a revision number, it must be higher than the latest one on the branch to which rev belongs, or must start a new branch. If rev indicates a branch instead of a revision, the new revision is added to the head of that branch. The level number is obtained by incrementing the head revision number of that branch. If rev indicates a nonexisting branch, that branch is created with the initial revision numbered NOTE: On the trunk, revisions can be added to the head, but not inserted. Sets the state of the checked-in revision to the identifier state. The default is Writes descriptive text into the RCS file (deletes the existing text). If txtfile is omitted, prompts the user for text from standard input that is termi- nated with a line containing a single or Ctrl-D. Otherwise, the descriptive text is copied from the file txtfile. During initialization, descriptive text is requested even if is not given. The prompt is suppressed if standard input is not a terminal. Similar to except that the deposited revision is not locked. This is useful if one wants to process (for example, compile) the revi- sion immediately after check in. Access Control Lists (ACLs) Optional ACL entries should not be added to RCS files, because they might be deleted. DIAGNOSTICS
For each revision, prints the RCS file, the working file, and the number of both the deposited and the preceding revision. The exit status always refers to the last file checked in, and is 0 if the operation was successful, 1 if unsuccessful. EXAMPLES
If the current directory contains a subdirectory with an RCS file all of the following commands deposit the latest revision from into Check in version 1.2 of RCS file with the message WARNINGS
The names of RCS files are generated by appending to the end of the working file name. If the resulting RCS file name is too long for the file system on which the RCS file should reside, terminates with an error message. The log message cannot exceed 2046 bytes. A file with approximately 240 revisions may cause a hash table overflow. cannot add another revision to the file until some of the old revisions have been removed. Use the (obsolete) command option to remove old revisions. RCS is designed to be used with TEXT files only. Attempting to use RCS with nontext (binary) files results in data corruption. AUTHOR
was developed by Walter F. Tichy. SEE ALSO
co(1), ident(1), rcs(1), rcsdiff(1), rcsmerge(1), rlog(1), rcsfile(4), acl(5), rcsintro(5). ci(1)
All times are GMT -4. The time now is 10:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy