Previous Topic: getver Utility--Display File Information (Windows Only)

Next Topic: restartsvc Utility--Restart a Service (Windows Only)

restartproc Utility--Restart a Process (Windows Only)

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>
arglist

Consists of the following 11 arguments. You must provide all of the following arguments for successful execution:

arg 1

Specifies the program binary to restart.

arg 2

Specifies the empire trap type.

arg 3

Specifies the process monitoring entry index.

arg 4

Specifies the process monitoring entry description.

arg 5

Specifies the process monitoring entry attribute.

arg 6

Specifies the process monitoring entry operator.

arg 7

Specifies the process monitoring entry current value.

arg 8

Specifies the process monitoring entry threshold value.

arg 9

Specifies the process monitoring entry flags.

arg 10

Specifies the process monitoring entry regular expression.

arg 11

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