I was going to ask it at superuser.com but there were only 5 strong tags tags so I came here ... P4 Get a list of workspaces on a specific machine?
I can run the P4 workspace, but it lets me all, anytime how can I filter it for a specific machine (client) name.
Depending on its environment, I've included a basic Windows batch file to do this.
Run p4 client
drag another word from each line, it's the customer's name. p4 client -o & lt; Name & gt; Run
. ^ Grep for host. * \ B & lt; Hostname & gt; \ B
. If grep succeeds, then that customer is for that machine. Submit to the list.
In Windows:
set / call for customers "tokens = 2" %% c in ('p4 clients') Call: ProcessClient%% C% Mail the process for customers at HOSTNAME%% CLIENTS% break: eof: / f "tokens = 1,2" %% h ('p4 client -o% 1') If "Host:% HOSTNAME%" == "%% H %% i" Set Clients =% Client %% 1: eof
Comments
Post a Comment