Troubleshooting LaunchProcess
Verify that the IsProductLaunchedInYourEnvironment
function returns true
when running in the scheduler environment.
The hostName
argument is a host name from the list returned
by the GetMachineListAvailableForDistribution
function. Verify that
the LaunchProcess
function can accept host names in the format returned
by the GetMachineListAvailableForDistribution
function.
The exePathName
argument is the pathname of the analysis
engine executable to be started. This pathname may contain spaces or
other characters special to the shell. Ensure that the LaunchProcess
function is able to handle such cases.
The arg1
and arg2
arguments may contain newlines, tabs,
single quotes, spaces, dollar signs, and other characters which may be
special to the shell. Ensure that the LaunchProcess
function is able
to handle such cases. If needed, the newline characters may be replaced
by other whitespace characters. One or both of these arguments could
also be an empty string; verify that the empty string is correctly passed
to the engine process command line.
If a scheduler command is used to launch the engine process
on a remote machine, the engine command line may be processed by the
shell twice, once when the scheduler command is processed by the shell,
and again when the engine command is processed by the shell. In such
cases, the quoting of characters special to the shell will need to be
take these two passes through the shell into account. In some implementations,
it may be necessary or convenient to use different approaches for launching
engine processes on the local machine and on remote machines; if this
is done, verify that the approach used to determine whether the hostName
argument represents the local machine is correct.