Sponsored Content
Top Forums Shell Programming and Scripting login in wincvs thorugh shell or perl script Post 302422733 by namishtiwari on Thursday 20th of May 2010 06:35:42 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
CVS-DEBC(1)						      General Commands Manual						       CVS-DEBC(1)

NAME
cvs-debrelease - upload a cvs-buildpackage/cvs-debuild generated package SYNOPSIS
cvs-debrelease [cvs-debrelease options] [--dopts [dupload/dput options]] DESCRIPTION
cvs-debrelease is run from the CVS working directory after cvs-buildpackage or cvs-debuild. It uses the cvs-buildpackage system to locate the .changes file generated in that run. It then uploads the package using debrelease(1), which in turn calls either dupload or dput. Note that the --dopts option must be specified to distinguish the cvs-debrelease options from the dupload or dput options. Also, the devscripts configuration files will be read, as described in the debrelease(1) manpage. Note that unlike cvs-buildpackage, the only way to specify the source package name is with the -P option; you cannot simply have it as the last command-line parameter. OPTIONS
All current cvs-buildpackage options are silently accepted; however, only the ones listed below have any effect. For more details on all of them, see the cvs-buildpackage(1) manpage. All debrelease options (as listed below) are also accepted. --dupload, --dput This specifies which uploader program to use; the default is dupload. -adebian-architecture, -tGNU-system-type See dpkg-architecture(1) for a description of these options. They affect the search for the .changes file. They are provided to mimic the behaviour of dpkg-buildpackage when determining the name of the .changes file. -Mmodule The name of the CVS module. -Ppackage The name of the package. -Vversion The version number of the package. -Ttag The CVS tag to use for exporting sources. -Rroot directory Root of the original sources archive. -Wwork directory The full path name for the cvs-buildpackage working directory. -xprefix This option provides the CVS default module prefix. --no-conf, --noconf Do not read any configuration files. This can only be used as the first option given on the command-line. --help, --version Show help message and version information respectively. SEE ALSO
cvs-buildpackage(1), debrelease(1) and cvs-debuild(1). AUTHOR
cvs-buildpackage was written by Manoj Srivastava, and the current version of debrelease was written by Julian Gilbey <jdg@debian.org>. They have been combined into this program by Julian Gilbey. DEBIAN
Debian Utilities CVS-DEBC(1)
All times are GMT -4. The time now is 05:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy