I'm trying to use a trigger to update a client instead of polling. I've
noticed that the following implementation causes the p4 submit (from a
different user) to take at least the number of seconds that doSyncDoc
sleeps.
This implementation DOES NOT work. Any suggestions? A feature request
is to add more trigger hooks.
Thanks --- Ted
I have my triggers configuration as...
--------------------------------------------------------
Triggers:
SyncDocs //ipath/doc/... /p4/triggers/syncDoc
I have my trigger implementated as a shell
script named /p4/triggerws/syncDoc
-----------------------------------------------
#!/bin/sh
/p4/triggers/doSyncDoc&
echo 0
And a second shell script named /p4/triggers/doSyncDoc
that sleeps for 10 seconds and then syncs
-----------------------------------------------
#!/bin/sh
sleep 10
P4USER=teiles
P4PORT=idpath01.interpath.net:1666
P4CLIENT=teiles-docs-unix
export P4USER
export P4PORT
export P4CLIENT
/usr/local/bin/p4 sync