[p4] Checking that a server exists?

Ivey, William william_ivey at bmc.com
Thu Nov 8 09:06:42 PST 2007


You could use: p4 -p <server:port> info

Check the output for "Server address:" or
"Server version:", etc. -Wm



-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Gross, Steve
Sent: Thursday, November 08, 2007 9:59 AM
To: perforce-user at perforce.com
Subject: [p4] Checking that a server exists?

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



More information about the perforce-user mailing list