Perforce workspace

Having some trouble creating a new workspace with a template on the command line. p4 client -i wants some standard input… How do you provide it? The template exists in memory, not as a file on disk.

Shouldn’t this be covered in the manual?
http://www.perforce.com/perforce/doc.current/manuals/p4v/Displaying_client_specifications.html

Those help docs are all gui stuff.

This works:

p4 client -i < fileDefiningTheWorkspace.txt

What I’d like is to pass the actual string defining the workspace, not a file:

p4 client -i “Client: pat Host:… Root:…”

but can’t get it to work. Is there some command line syntax I’m missing?

as long as the p4 -i is getting the complete client off stdin it should work, you might need to escape your string so that it doesn’t get aborted by the first newline

Well would go through it and try with this!!!