[p4perl] Trigger Script Issue

Scott Lavender Scott.Lavender at visiprise.com
Tue Sep 2 06:58:21 PDT 2008

The user is being passed in for reporting purposes only. The trigger
script reads the credentials(username/ticket) from a file:

# Perforce username of superuser used to execute trigger scripts
# Perforce ticket to validate login of above username

I have verified that this is the current ticket:

[root at perforce test]# p4 tickets (build) B740A553FDFAAE9A3C85DFD19485DE5F

Anything else that might be causing this?

-----Original Message-----
From: G Barthelemy [mailto:gb.perforce at googlemail.com] 
Sent: Tuesday, September 02, 2008 9:51 AM
To: Scott Lavender
Cc: p4perl at perforce.com
Subject: Re: [p4perl] Trigger Script Issue

2008/9/2 Scott Lavender <Scott.Lavender at visiprise.com>:
> I have a problem with part of my trigger script. It runs fine from the
> command line, but fails for some unknown reason when run by the server
by a
> trigger event. I have a trigger associated with submits to verify that
> user has associated a valid job/incident. This has worked in the
> - 7003.2), but has not worked since moving to 2007.3.

Whenever I experienced issues with a script running from command line
but failing in trigger context, it turned out to be authentication

For example, I see that you are passing %user% to the trigger script.
Why ? Are you setting that user for subsequent API calls (i.e.
$p4->SetUser()) ? In which case, could this be an authentication issue
(i.e. the user doesn't have a running ticket on the server host where
the trigger is running from) ?


More information about the p4perl mailing list