Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Machine-specific problem with triggers in Perl: msg#00001

version-control.bitkeeper.user

Subject: Re: Machine-specific problem with triggers in Perl

Hi,

What version are you running? bk version

If not bk-3.2.8, try upgrading to it.
There was a problem in an old version of bk where it spawned
the script with -c because the thought it was /bin/sh script.

Rick


On Tue, Jun 06, 2006 at 07:04:10PM -0500, David Schwarz wrote:
> I'm having a problem with BitKeeper triggers written in Perl, and was
> hoping someone on this list might have seen something similar and be able to
> help.
>
> I'm running BitKeeper on a Windows XP / Cygwin platform, as are a number
> of my coworkers. Our repository has post-commit and post-push (I forget the
> proper name of that one) triggers written in Perl. The triggers are pretty
> standard--they send a summary email to everyone in the workgroup.
>
> The problem is, when BitKeeper runs those triggers on my machine, it
> gives the following output:
>
> "Bitkeeper/triggers/post-commit.mail.perl Syntax OK"
>
> This is exactly the same output I get if I run "perl -c" (syntax check
> only) on the trigger from the root of the repository.
>
> If I explicitly call perl on one of the trigger files from outside of
> Bitkeeper (i.e., "perl post-commit.mail.perl"), it works correctly. It also
> works if I directly call the trigger from the shell (just call "
> post-commit.mail.perl"). The only time it fails is when BitKeeper tries to
> run it, and then all I get is syntax checking.
>
> I experimented a bit and worked out the following:
>
> 1) If I replace the trigger with a syntactically incorrect Perl script,
> BitKeeper accurately reports the syntax error, supporting the conclusion
> that it is somehow running Perl in syntax-checking mode.
>
> 2) If I add a shell script trigger, it runs fine, with no messages. Just
> does what it's supposed to. The problem is specific to Perl triggers.
>
> c:\cygwin\bin is the first directory in my PATH environment variable, so
> I know I'm getting the correct perl executable.
>
> Any thoughts on what might be causing this?
>
> Thanks,
> David Schwarz

> _______________________________________________
> Bitkeeper-users mailing list
> Bitkeeper-users@xxxxxxxxxxxx
> http://mail.bitmover.com/mailman/listinfo/bitkeeper-users


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation