login in wincvs thorugh shell or perl script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting login in wincvs thorugh shell or perl script
# 1  
Old 05-17-2010
login in wincvs thorugh shell or perl script

Hi ,

I am trying to write a script which does the wincvs login and does some checkout operations.

When i do it from command prompt with command
Code:
wincvs -d :pserver:username@server:/cvs/repository

it pops up a cvs window and i can do some operations there. I wanted to automate this through perl scripting or shell so neded some help in achieving it.
Just wanted to have some idea how i can do this.

Thanks
# 2  
Old 05-20-2010
Hi,

I am trying to use the Cvs::Simple module of CPAN for perl interface but i am not able to do so here. I did not see a function where i need to put the server details and password. i am trying something like this but it does not work.
Please advise as how i can achieve this.

Code:
#!/usr/bin/perl
use Cvs::Simple;
use strict;
use warnings;

print "This program is using CVS module of CPAN...\n";
my($cvs) = Cvs::Simple->new('D:/CVS/temp',
        cvsroot => ':pserver:user@server:/cvs/repository',
        password => 'secret'
) or die "$!";
my $tag = "tagname";
my $module = "modulename";
print " Preparing to checkout $tag with $module\n";
$cvs->co($tag , $module);
print "Checkout is done. Please check the location of repository\n";

When i execute this program i got the error
Code:
Odd number of elements in hash assignment at C:/Perl/site/lib/Cvs/Simple.pm line 68.

How can we pass the login credentails and cvs server details to the new method.
Any idea or help will be a good help to me.

Thanks

---------- Post updated 05-20-10 at 06:35 AM ---------- Previous update was 05-19-10 at 08:56 AM ----------

Hi,

I am stuck in my code and not getting idea how to get it working.
If any suggestion or help is provide that will be helpful.

Thanks

Last edited by namishtiwari; 05-20-2010 at 06:07 AM.. Reason: Added the error which i got.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script for login user and email

Guys please help me I have a linux class and I want to write a shell script who shows which user loged in and show the process that are active in his/her shell in another text file and email that file to root just when the user loged out Thanks every bod (1 Reply)
Discussion started by: hamedk1122
1 Replies

2. Shell Programming and Scripting

Script as login shell (passing args to login shell)

Hello all, for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell. So serverA launches the ssh command to serverB which has a local user with my script as a login shell. Local script works like a charm on his own. serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies

3. Shell Programming and Scripting

HELP on Perl array / sorting - trying to convert Korn Shell Script to Perl

Hi all, Not sure if this should be in the programming forum, but I believe it will get more response under the Shell Programming and Scripting FORUM. Am trying to write a customized df script in Perl and need some help with regards to using arrays and file handlers. At the moment am... (3 Replies)
Discussion started by: newbie_01
3 Replies

4. Shell Programming and Scripting

Python/Perl script for auto login

I am loooking for a python/perl script which can login to gmail or any mail accounts and open a browser with the logged in page. I am trying this in a windows environment. I tried many docs available over internet an nothing seems to be working. (4 Replies)
Discussion started by: Tuxidow
4 Replies

5. Shell Programming and Scripting

How to call a shell script from a perl module which uses Filehandle to login

Hi Guru's, Pardon me for the breach of rules..... I have very little knowledge about Shell Programming and Scripting hope you guys help me out of this troble I have very little time hence could not find the right way to direct my queries. coming to the problem I need to call a... (2 Replies)
Discussion started by: saikrishna_tung
2 Replies

6. Shell Programming and Scripting

Login with Shell Script.

Dear All, I need to create a shell script which will login to a unix system with user root. I also need to supply the password for root through script only instead of entering it manually. After i am logged in to the system i need to excute all the necessary commands. so far i have done... (7 Replies)
Discussion started by: Siddheshk
7 Replies

7. Shell Programming and Scripting

Shell/perl script to connect to different servers in single login in teradata

Hi, I want to write a shell script to compare two tables in teradata.these tables are present on different servers. I want to connect to both servers in single login in order to fetch and compare the data in one go. Thanks (1 Reply)
Discussion started by: monika
1 Replies

8. Shell Programming and Scripting

login from a shell script?????

Any help on this ..... its a bit urgent !!!! Hi Can anybody provide info about the following??? i want to issue su (switch user) command from within a shell script how to take the password without user intervention from the shell script only???? i.e using apssword which is already... (2 Replies)
Discussion started by: skyineyes
2 Replies

9. Shell Programming and Scripting

remote-login via Shell-Script

Hello all, I would like to login from one unix-system with a (tcsh)-script to an other unix-system.The login-procedure and the transmission of username, resp. password runs via ssh. The problem is after logging onto the remote server once "Enter" has to be pressed, before one gets to the... (1 Reply)
Discussion started by: Juergen Paepke
1 Replies

10. UNIX for Dummies Questions & Answers

remote login via shell script

is it possible for me to have a shell script log me in to a telnet session? i have in mind something along the lines of % telnet host < script, where the first two lines of script will be username and pass followed by a list of commands to execute on the remote host. this doesn t work as... (4 Replies)
Discussion started by: lethe
4 Replies
Login or Register to Ask a Question