Command complete packet - njb-said/Godfrey GitHub Wiki

The command complete packet

The command complete packet is sent by a server whenever a command is no longer blocking (aka. it has finished executing).
Packet type is: COMMANDCOMPLETE

Packet Layout

Within the data object you would have the following:

  • statusId this is the exit code the command. A zero exit code means a normal exit/termination, a non-zero code means an abnormal exit.
  • command the command you executed (for identification purposes)
  • hashId the unique identifier for this execution
  • time the time the command signaled it's exit (milliseconds, divide by 1000 for seconds)

Packet Example

No realistic example available, this packet will be sent by the server after the command has finished executing (determined by Process#waitFor())