[p4] Checking that a server exists?
Nau, Mike
Mike_Nau at intuit.com
Thu Nov 8 09:13:16 PST 2007
You should be able to run the info command since its not affected by a current password, user, or client. If a server exists (and it's running) p4 info will return basic info about the server.
p4 -p <server>:<port> info
-Mike
-----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 7: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