#!/usr/bin/perl # Show Broker Input - Debugging utility. # Enable in the broker config file like so: # command: ^sbi$ # { # action = filter; # checkauth = true; # execute = /p4/common/hms/scripts/sbi.pl; # } use strict; my $Log="$ENV{LOGS}/sbi.log"; my $Output; open (LOG, ">$Log") or die "\nError: Log is bogus!\n"; while (<STDIN>) { print LOG; } close (LOG); $Output = `/bin/cat $Log 2>&1`; print "action: REJECT\n"; print "message: \"$Output\"\n"; exit (1);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 22142 | Robert Cowham | Merge in latest changes from Dev | ||
//guest/perforce_software/sdp/dev/Server/Unix/p4/common/hms/scripts/sbi.pl | |||||
#1 | 20801 | C. Thomas Tyler |
Implemented security: 'p4 hms' commands require a super user to be logged in. Added 'p4 sbi' (show broker input) broker debugging utility. |