ClientUser::RunCmd( const char *, const char *, […], Error * )
Call an external program.
Virtual? |
No |
|
Class |
|
|
Arguments |
|
the executable to be called |
|
the first argument |
|
|
the second argument |
|
|
the third argument |
|
|
the fourth argument |
|
|
a pager, if any |
|
|
an |
|
Returns |
|
Notes
RunCmd()
is called
when the client needs to call an external program, such as a merge or
diff utility. RunCmd()
stores any resulting errors in the specified Error
object.
Example
If you select "d" for "Diff" during an interactive resolve, and both
P4DIFF
and P4PAGER
are set in
your environment, RunCmd()
is called with
the following arguments:
Argument | Value |
---|---|
|
|
|
local file name |
|
temp file name (depot file) |
|
null |
|
null |
|
|
The P4DIFF
program is called with the two file names
as arguments, and the output is piped through the
P4PAGER
program.
See the examples for Diff()
and Merge()
for code
illustrating the use of RunCmd()
.