The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tagging with Oracle and Ruby on Rails iBot Oracle Updates (RSS) 0 04-06-2008 02:10 AM
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 12:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 12:06 AM
Modify Perl script to work with txt - Permissions script joangopan Shell Programming and Scripting 1 09-12-2007 08:38 PM
ID3 tagging script SimonDorfman Shell Programming and Scripting 4 04-11-2007 12:32 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
Lightbulb CVS Tagging Script

Hi All,

We have to tag all source code files to prepare a release kit. We have one CVS Project under which all files have to be tagged.

We use the following cvs command to tag a specific version of a file:

'cvs rtag -r X.XX -F "newbuild" somefile'

This command asks for the CVS Login password everytime executed.

What I plan to is to minimize the manual tagging of files with the newbuild and just have a list of fil_name, version changed since the last build.

file_list.csv
-----------------
file_name,version
-----------------

If we have the information in the following format, can write a shell script to tag all files against the version specified with the newbuild name.

Note: The cvs commands asks for a password everytime it is executed. Can I pass the password just once?


Thanks,
Rahul.
Reply With Quote
Forum Sponsor
  #2  
Old 01-05-2006
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
Question Expect

I've found out that the expect utility can pass input to such commands through stored files.

Where can i get expect for Sun Solaris 5.8?

Thanks,
Rahul.
Reply With Quote
  #3  
Old 01-05-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
Right here
Reply With Quote
  #4  
Old 01-05-2006
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
Hi Rahul,
Try this
for i in * # or whatever list of filenames
do
cvs your_cvs_processing << EOF
userid
password
EOF
done
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0