[p4] perl trigger

Dave Lewis dlewis78731 at gmail.com
Wed Nov 15 19:53:58 PST 2006


Hi Rob!  Just taking a guess, it might be that there are
few or no paths set in the PATH env, so that 'ls'  might
not be found.  try /bin/ls  or wherever ls is residing...

dave

On 11/15/06, Robert McKenna <robertm at bioware.com> wrote:
> Hi
>
> I'm having a problem with a trigger which runs fine unless I try to
> execute a command using back ticks or system. The following is a very
> simple trigger I've been using for testing and which fails on the line
> @FILES = `ls -l /perforce/triggers`;. The trigger succeeds if this line
> is replaced with a static assignment to @FILES. "Die" produces no output
> in the validation failure message.
>
>
>
> #!/usr/bin/perl
>
> @FILES = `ls -l /perforce/triggers` || die("Bombed");
>
> foreach $FILE (@FILES) {
>
>   $test = $FILE;
>
> }
>
>
>
> The entry in the triggers table is this.
>
>
>
> simple change-submit //test/perforce/robertm/triggers/CookedXenon/...
> "/usr/bin/perl /perforce/triggers/simple.pl 2>&1"
>
>
>
> Any thoughts would be welcome.
>
>
>
> Rob McKenna
>
> _______________________________________________
> 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