Sponsored Content
Top Forums Shell Programming and Scripting Latest version of a file across the servers .. Post 93267 by cbkihong on Friday 16th of December 2005 07:23:19 PM
Old 12-16-2005
Another idea: put your script under version control like CVS or Subversion, then you can easily check whether each copy on each server is latest, manually or as a script regularly triggered by cron, or can be instructed to update automatically to ensure all copies are always the latest without human intervention.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Downloading vs buying latest version of os

I am currently taking a Unix programming class in school, I want ot know which is more efficient and quicker, downloading the os or buying the os (4 Replies)
Discussion started by: lavonte
4 Replies

2. UNIX for Dummies Questions & Answers

What is the latest version of Unix?

I want to buy it (2 Replies)
Discussion started by: LANSTARR.COM
2 Replies

3. Shell Programming and Scripting

identy the latest version using shell command

Hi, I have some version number's present in a text file like version.txt contains 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 (may be more that this) can we write any specific shell command to find it out the latest version (For this it is 1.0.4 ) ? I am a new user of shell command and cud... (6 Replies)
Discussion started by: bhaskar_m
6 Replies

4. Shell Programming and Scripting

search latest version of log file

Have checked the forums and couldnt locate help on this. I want to grep a log file for a pattern using a script - I need to grep the latest log file and not sure how I am able to ensure I am greping the latest log file. Here is sample of log files for yestersday and I effectively need to grep... (10 Replies)
Discussion started by: frustrated1
10 Replies

5. BSD

latest version of bsd

Any body there ? What is latest BSD version ? (4 Replies)
Discussion started by: chilaka
4 Replies

6. Ubuntu

Download latest Ubuntu version from linux command

I have ubuntu 10.4 on my system and want to download newer Ubuntu version like 11.04. Is there any linux command(something like apt-get source used for downloading kernel source) using which I can download directly the newer ubuntu relaease? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

7. AIX

Latest firmware version for P770

Dears i have a power7 P770 working in AIX 5.3 TL 11 with frimware AM730_066 is the AM730_066 frimware the latest one or not ? (6 Replies)
Discussion started by: thecobra151
6 Replies

8. Shell Programming and Scripting

Help with finding the latest modified version of a file within directories

I am trying to look into multiple directories and pluck out the latest version of a specific file, regardless of where it sits within the directory structure. Ex: The file is a .xls file and could have a depth within the directory of anywhere from 1-5 Working directory - Folder1... (6 Replies)
Discussion started by: co21ss
6 Replies

9. Shell Programming and Scripting

How to Fetch latest version form a file?

Hi, I have a file where versions will be updated, i need to get latest/last updated version from that file. Could you please help? File looks like below - <versions> <version>R20180417.006</version> <version>R20180421.007</version> <version>R20180421.008</version> ... (5 Replies)
Discussion started by: schandra128
5 Replies

10. Solaris

Solaris 11 SRU latest version

Hi During a host review session I was told to check if the engineers have been updating Solaris 11 OS regularly by verifying the SRU version of the system. However i was having no luck in finding the latest SRU version number in oracle website for hours. I wonder did anyone here know where i... (4 Replies)
Discussion started by: kaze
4 Replies
CVSUTILS(1)						      General Commands Manual						       CVSUTILS(1)

NAME
cvsutils - CVS utilities for use in working directories SYNOPSIS
cvsu [options] cvsco [ options ] cvsdiscard [ options ] cvspurge [ options ] cvstrim [ options ] cvschroot [ options ] cvsdo [ options ] DESCRIPTION
The idea of cvsutils is to facilitate working with the files in the working directory of a developer using CVS (Concurrent Versions Sys- tem). From the point of view of CVS, working directories have low value, since they can easily be recreated using the cvs checkout command. Also the cvs update command will show the status of the files, i.e. whether they have been modified, added or removed. CVS in it's current state is a client-server system that does most of its work on the server side. CVS provides only few (if any) means for managing the working directory without communicating with the server. There are, however, several reasons why such means are necessary: * There is enough information on the client side to create fast tools for sorting and purging the working directory without contacting the CVS server. * Checking out a big module over a slow line can take too much time. * There should be support for disconnected operations. * CVS poses certain unnecessary restrictions on read-only users, e.g. cvs add command doesn't work for them. CVSU
cvsu is "cvs update offline". It lists the files found in the current directory (or in the directories which you specify). Following is taken into account: * Attributes of the file. * Information about the file in CVS/Entries. * Timestamp of the file compared to the timestamp stored in CVS/Entries. Run cvsu --help to see supported command line options. The options can be abbreviated. This functionality is provided by Perl, and can vary from one machine to another. CVSCO
cvsco is a "cruel checkout". In other words, it removes results of compilation and discards local changes. It deletes all the files except listed unmodified ones and checks out everything which seems to be missing. Please note, that cvsco doesn't update files which haven't been modified locally. It only reloads missing files and files which it erases. CVSDISCARD
cvsdiscard is "discard my changes". In other words, it discards local changes but keeps results of compilation. It works like cvsco, but it only deletes files which are likely to cause merge conflicts. CVSPURGE
cvspurge leaves all files known to CVS, but removes the rest. Unlike cvsco, it doesn't remove local changes. It is useful to test local changes in the otherwise clean source tree. CVSTRIM
cvstrim removes files and directories unknown to CVS. Files listed in .cvsignore are not removed. The idea is to remove the files that are not resulted from the normal build process - backups, coredumps etc. cvstrim relies on .cvsignore files being correct. Note that the back- ups for modified files are removed. CVSCHROOT
cvschroot makes it possible to change CVS/Root in all subdirectories to the given value. Currently the only argument accepted is the new CVSROOT value. Old-style CVS/Repository files that contain the full path to the repository are updated to reflect the change. New-style CVS/Repository don't need to be changed. If the environment variable CVSROOT is defined, it overrides the contents of CVS/Root. In other words, it is treated as the old CVS root. CVSDO
cvsdo simulates some of the CVS commands (currently add, remove and diff) without any access to the CVS server. Using cvsdo add and cvsdo remove allows you to create diffs with cvs diff -N, and all removed and added files will appear in the diff correctly, as if you had used cvs add and cvs remove respectively. cvsdo diff tries to locate the backup copies of the modified files. If they can be found, they are compared with the current version using diff. Only those backup copies are used that have the modification date equal the date listed in CVS/Entries for the modified file. cvsdo diff patches the diff output to make it more robust to apply. An exception is made for files named "ChangeLog" - in this case diff will be instructed to omit all context lines, so that the patch can be applied even if other changes have been written to the ChangeLog. Also the added files are handled properly. The header of the diff output is patched in such way that at least GNU patch will create a new file when the resulting patch is applied and remove that file when the patch is reverted. LICENCE
cvsutils is covered by the GNU General Public License (GPL). SEE ALSO
cvs(1), cvs2cl(1). AUTHOR
This manual page was written by Uwe Hermann <uwe@debian.org>, for the Debian GNU/Linux system (but may be used by others). February 27, 2002 CVSUTILS(1)
All times are GMT -4. The time now is 05:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy