[p4] Sharing client spec between users

Robert Cowham robert at vaccaperna.co.uk
Thu Dec 6 01:30:38 PST 2001

> > From: Jeff A. Bowles [mailto:jab at piccoloeng.com]
> >
> > "p4 client -t TEMPLATE_CLIENT" might be what you need. You can use it
> > to create a new client using TEMPLATE_CLIENT as the model to
> > start from,
> > and if you update the template, you can import the new 'View' section
> > (complete,
> > so it's not a merge into your other View lines for a client)
> > using this "p4
> > client -t"
> > mechanism, also.
> >
> Thanks for the hint. Is there a way to replace the view section
> in this way
> _without_ requiring user intervention (not invoking the editor,
> just update
> the view mappings)? Couldn't find _that_ specific option in the help.

Use "p4 client -o > tempfile", manipulate the contents of the temp file and
then run "p4 client -i tempfile". This works for all "Editor form" commands.

As an example of the above see in the public repository a Perl script (there
are others but this one creates a new client from a template and copies
across various fields):



More information about the perforce-user mailing list