Hi all,
my subject may be very confusing therefore let me explain my problem.

Version : cvs_1.10
platform : Sun Solaris 2.5.1

We are using the same repository in 2 different sites and therefore,
when using cvs from the "remote site" we use the rsh (server) method.

We want to use the commitinfo administrativ mechanism to do some
pre-checkin tests. Here the commitinfo file content :

host> more commitinfo
ALL /gnu/bin/precommit.pl


This "precommit.pl" file is a perl script doing some tests, displaying
some informations and then asking the user if she really wants to check
the file in. When used locally there is no problem since the perl
script directly interact with the user, but when used remotly it
doesn't work anymore (the interactiv part)... I guess it is because of
the cvs server mechanism who sends informations to my perl script which
are not at all the one the script is expecting...

Here are the few lines where I try interactivity in my script :

while ( ($answer ne "YES")&&($answer ne "No"))
{
        print "Are you sure you want to check-in this version [y/n] ? : ";
        $answer = <STDIN>;
        chomp($answer);
} 


With what can I replace my "$answer = <STDIN>" to let it work remotely ?

Thanks a lot,
Stephane
e-mail : [EMAIL PROTECTED]

Reply via email to