The restartproc utility can restart a Windows process (program) through an action invocation. This utility is mainly used as an action for a Process Monitor table entry. Before running this utility, make sure that the corresponding process monitoring entry is already created. This utility is available on Windows only.
This utility has the following format:
restartproc <arglist>
Consists of the following 11 arguments. You must provide all of the following arguments for successful execution:
Specifies the program binary to restart.
Specifies the empire trap type.
Specifies the process monitoring entry index.
Specifies the process monitoring entry description.
Specifies the process monitoring entry attribute.
Specifies the process monitoring entry operator.
Specifies the process monitoring entry current value.
Specifies the process monitoring entry threshold value.
Specifies the process monitoring entry flags.
Specifies the process monitoring entry regular expression.
Specifies the process monitoring entry current process id.
Examples
The following example invokes restartproc.exe in a sysedge.cf entry:
watch process procAlive 'testapp|TESTAPP' 1000 0x0 30 'testapp restart' '%CASYSEDGE%\bin\restartproc.exe c:\testapp.exe\'
You can also invoke restartproc.exe on the command line. The following example restarts process ID 3024:
c:\sysedge\bin\restartproc.exe c:\testapp.exe 10 1000 "testapp restart" 1 3 6 4 0x0 "testapp|TESTAPP" 3024
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |