[p4] trigger NOT executing at all

Weintraub, David david.weintraub at bofasecurities.com
Wed Sep 27 13:36:13 PDT 2006


HINT: add the following to the end of your Trigger definition:

 something change-content //... "/bin/sh -c '/bin/echo hello;
/bin/badcommand' 2>&1"

The 2>&1 will copy any message that is being displayed on STDERR to
STDOUT. This way, you'll see any OS error messages that you may be
getting (for example, bad license, can't log in, etc).

For some wacky reason, Perforce displays STDOUT and only STDOUT when a
trigger fails. It really should be displaying STDERR and not STDOUT when
a trigger fails. That way, we get these OS errors and Perl die
statements when something goes wrong.

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Anuj Lal
Sent: Wednesday, September 27, 2006 1:14 PM
To: perforce-user at perforce.com
Subject: Re: [p4] trigger NOT executing at all

I have tried all of the following

something change-content //... "/bin/sh -c '/bin/echo hello;
/bin/badcommand'"

something change-content //... "/bin/sh -c '/bin/echo hello' " 

something change-content //... "/bin/sh -c '/bin/echo hello;'"

something change-content //... /opt/home/p4d/p4/1.sh

and definition of 1.sh

#!bash
echo 'hello world'
exit 0


keep getting
validation failed. No error message.


Anuj

-----Original Message-----
From: Robert Cowham [mailto:robert at vaccaperna.co.uk] 
Sent: Wednesday, September 27, 2006 2:27 AM
To: Anuj Lal
Subject: RE: [p4] trigger NOT executing at all

P.s. how about:

something change-content //... "/bin/sh -c '/bin/echo hello;
/bin/badcommand'"
 

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Anuj Lal
Sent: 26 September 2006 17:22
To: perforce-user at perforce.com
Subject: [p4] trigger NOT executing at all

my perforce trigger is not executing at all. I am sure its something
related
to env setup but I don't know which settings are wrong.

Just to debug, I have removed my trigger script and specify simple
command
in trigger definition.

 I am specifying

something change-content //... "/bin/echo 'hello world';
/bin/badcommand"

 

I want to make sure my trigger is executing and looks it not executing
at
all.

 

I keep getting "validation failed. no error message"

 

I am lost. Any help is greatly appreciated

 

anuj

 

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



More information about the perforce-user mailing list