P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:

Within Win NT3.5.1 I am having problems with my ClearCase view. I do not have this problem on the other platforms I am working on (AIX, Solaris, Linux, HPUX, IRIX, Windows 2000).
my $CLEARTOOL = "c:\\atria\\bin\\cleartool"; $my_view = `$CLEARTOOL pwv -s`; if ( $my_view =~ /NONE/) { die "not in a view\n"; }
For some reason, when this is executed on NT3.5.1 it thinks that it is not in a view and returns ** NONE **. Hence, the script fails.

Does anyone have any ideas on how I can maintain my environment on this platform? Could you suggest a work around? Thank you :)

-P0w3rK!d

Replies are listed 'Best First'.
Re: Perl and Clearcase: Not able to see view
by fglock (Vicar) on Sep 16, 2002 at 14:41 UTC

    Did you check the ClearCase::ClearTool and CPAN modules? Even if you don't want to use these modules, reading the source code might help you find the solution.

    Also, try calling with  `cmd /c your-command-here`

Re: Perl and Clearcase: Not able to see view
by BrowserUk (Patriarch) on Sep 16, 2002 at 14:47 UTC

    Might be worth pointing out that NT3.5.1 was flacky a best. NT4 was considerably better.

    I've had many strange/wrong results from NT3.5.1 in the past. It breaks many apps that were written for NT4 and later. Have you checked the compatibility of ClearCase with that ol'dog?


    Well It's better than the Abottoire, but Yorkshire!
      To be more precise, I am using Ant to call compiled perl scripts. When a a script is called which verifies that you are in a view, for some reason it does not think it is in a view on NT3.5.1. If you have a view mapped to a logical drive and run ant:
      G:\>ant -buildfile foo.xml

      ...the code dies and states that you are not in a view. This works fine on W2K and all UNIX/Linux flavors.

        My point was that NT 3.5.1 was at best, a barely supported (by MS) platform. It pre-dated Java anything by a looong way, and was rapidly and totally superceded by NT4. I am amazed that anyone is still using it as it had no merits over NT4 and many, many downsides and caveats. I don't know for sure, but I doubt that you would be able to get any support from MS for this outdated and superceded product.

        You are describing your problem in terms of a Java-based product, running on a very old platform. You are not describing anything that can be directly (nor even indirectly) attributed to Perl. This is a Perl related site.

        What makes you think that the problem is a Perl problem and not an ant or java-runtime or java virtual machine or java compiler or NT3.5.1 one?

        Have you tried running the perl commands individually from outside of ant? Do they work from the command line via the logical drive?

        Have you tried substituting a non-perl command located on the logical drive in place of the perl scripts? Are they invoked correctly via ant on NT3.5.1?

        As I said, the specific problem you describe is "you are not in a view". This is not a Perl error! Wouldn't the Ant/java/Jakarta project support/discussion forums be a better place to be asking?


        Well It's better than the Abottoire, but Yorkshire!