[p4] Checking that a server exists?
Jeff A. Bowles
jab at pobox.com
Thu Nov 8 11:37:12 PST 2007
I always liked several levels of tests:
"ping" - run 'p4 info' and look for meaningful names like the server's
root dir.
"metadata" - run 'p4 users' and look for field-name "User" in tagged
output.
"filecontent" - for the most recent changelist, run a 'p4 verify' on the
files in that changelist and look for MD5 checksums.
If you have a replicated server or a proxy, you could see how to go from
here.
-Jeff Bowles
On Nov 8, 2007 7:58 AM, Gross, Steve <SGross at sjm.com> wrote:
> What's the easiest way to use p4 to determine if a server exists? For
> instance, consider this statement:
> p4 -p someServerName depots
>
> If someServerName exists, p4 should list the depots in it, right?
>
> I've tried this approach, but p4 responds:
> Perforce password (P4PASSWD) invalid or unset.
>
> I've tried to login (successfully), as well as specify the client and/or
> password on the command line. This has not worked, so far.
>
> Any ideas?
>
> Thanks,
> --Steve
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
---
Jeff Bowles - jeff.a.bowles at gmail.com
More information about the perforce-user
mailing list