[p4] p4 -x- flag with client -d?

Melissa Kacher mkacher at msn.com
Thu Mar 29 09:18:00 PST 2007


You can only delete one client at a time. You have to run "p4 client -d" n 
times to delete n clients. You are only running the command once, with all 
of your clients on the same command line.

So you need something like:
for /f %%x in (obsolete_clients_list.txt) do p4 client -d %%x
But I haven't tested this for syntax correctness.

----Original Message Follows----
From: "Barbieri, Ross" <rbarbieri at atg.com>
To: <perforce-user at perforce.com>
Subject: [p4] p4 -x- flag with client -d?
Date: Thu, 29 Mar 2007 11:36:52 -0400
MIME-Version: 1.0
Received: from frankenrouter.perforce.com ([67.101.114.82]) by 
bay0-mc2-f22.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 29 
Mar 2007 10:14:01 -0700
Received: from p4tress.perforce.com (localhost [127.0.0.1])by 
frankenrouter.perforce.com (8.13.0.PreAlpha5/8.13.0.PreAlpha5) with ESMTP id 
l2TGbdmW089880;Thu, 29 Mar 2007 08:38:04 -0800 (PST)
Received: from waypost.perforce.com ([10.199.0.13])by 
frankenrouter.perforce.com (8.13.0.PreAlpha5/8.13.0.PreAlpha5) withESMTP id 
l2TFatKa089196for <perforce-user at perforce.com>; Thu, 29 Mar 2007 07:36:57 
-0800 (PST)
Received: from relay.atg.com (HELO buttercup.atg.com) ([64.69.11.24])by 
waypost.perforce.com with ESMTP; 29 Mar 2007 07:36:55 -0800
Received: from MAILSVR.na.ad.atg.com 
(cmb-na-excl01.na.ad.atg.com[10.2.128.35])by buttercup.atg.com 
(8.13.6/8.13.6) with ESMTP id l2TFarDH029392for 
<perforce-user at perforce.com>; Thu, 29 Mar 2007 11:36:53 -0400 (EDT)
X-Message-Info: 
txF49lGdW43ncJa0ZqfHH0eYCRQUoec0zw1UfzkyC8laNXd8dOQIRVF2MS2UxJzQ
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgAAAPt5C0ZARQsYh2dsb2JhbACDD4x2AgEIDio
X-IronPort-AV: i="4.14,347,1170662400"; d="scan'208,217"; 
a="8274041:sNHT57754600"
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: p4 -x- flag with client -d?
Thread-Index: AcdyGBK/N6DeTy88RfK010liX3SSiA==
X-Proofpoint-Spam-Reason: safe
X-Content-Filtered-By: Mailman/MimeDel 2.1.6
X-BeenThere: perforce-user at perforce.com
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Discuss Perforce with other users <perforce-user.perforce.com>
List-Unsubscribe: 
<http://maillist.perforce.com/mailman/listinfo/perforce-user>, 
<mailto:perforce-user-request at perforce.com?subject=unsubscribe>
List-Archive: <http://maillist.perforce.com/pipermail/perforce-user>
List-Post: <mailto:perforce-user at perforce.com>
List-Help: <mailto:perforce-user-request at perforce.com?subject=help>
List-Subscribe: 
<http://maillist.perforce.com/mailman/listinfo/perforce-user>, 
<mailto:perforce-user-request at perforce.com?subject=subscribe>
Errors-To: perforce-user-bounces at perforce.com
Return-Path: perforce-user-bounces at perforce.com
X-OriginalArrivalTime: 29 Mar 2007 17:14:01.0425 (UTC) 
FILETIME=[A5326C10:01C77225]

I am trying to delete a batch of obsolete clients, but I can't use the
-x flag as I would expect:



p4 -x obsolete_clients_list.txt client -d



cat obsolete_clients_list.txt | p4 -x- client -d



both give a usage error for the client command.



Any thoughts?



Thanks,

_______________________________________________
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