[p4] List of clients owned by user and p4 users (short) commands?
Mohsin Saleem Khan
MKhan at LMKR.COM
Thu Jul 6 04:08:10 PDT 2006
The second wraper may not give the exact values as Created by not always
tells who is the current owner.
Regards
Mohsin Saleem Khan
Biswajit Dash <biswajitind at yahoo.com>
Sent by: perforce-user-bounces at perforce.com
07/06/2006 02:29 PM
Please respond to
biswajitind at yahoo.com
To
Chris Weiss <chris.weiss at gmail.com>, Perforce Users
<perforce-user at perforce.com>
cc
Subject
Re: [p4] List of clients owned by user and p4 users (short) commands?
Hi Chris,
I think you can write wrapper around the commands to
get the desired output.
In case you are in Unix env,
You can write scripts like the following.
p4users:
#/usr/bin/csh
if ( "$1" == "-s" ) then
p4 users | cut -d' ' -f1
else
p4 users $*
endif
p4clients:
#/usr/bin/csh
if ( "$1" == "-s" ) then
p4 clients | cut -d' ' -f2
else
p4 clients | grep "Created by $1"
endif
Thanks,
Biswajit
--- Chris Weiss <chris.weiss at gmail.com> wrote:
> I'm trying to automate P4 user management and
> there's a few things I'd
> like to be able to do from the command line that I'm
> not finding:
>
> #1 - Get a list of clients belonging to a particular
> user (I would
> have thought "p4 clients username" would have
> worked)
>
> #2 - Get a short-form list of all users on a server
> (p4 users dumps a
> lot of extraneous info).
>
> #2 is easy to work around, but I thought I'd ask.
>
> --
> -Chris
> _______________________________________________
> perforce-user mailing list -
> perforce-user at perforce.com
>
http://maillist.perforce.com/mailman/listinfo/perforce-user
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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