# voxl-send-command exit status implementation request

Source: https://forum.modalai.com/topic/5058/voxl-send-command-exit-status-implementation-request
Category: Feature Requests (https://forum.modalai.com/category/29/feature-requests)
Posted: 2026-02-11 16:11:18 UTC by jameskuesel
Replies: 3 · Views: 2324

## jameskuesel · 2026-02-11 16:11:18 UTC

Super super low priority but I noticed that voxl-send-command doesn't output a return code. Even on an error can look like a success since echo will return exit status 0. This is particularly frustrating when an error does actually occur. 

https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/master/scripts/voxl-send-command?ref_type=heads

Here is a fix below:

```
if [ -p "/run/mpa/${1}/control" ]; then
    _CONTROL_FILE="/run/mpa/${1}/control"
    shift
    echo "$@" >> "$_CONTROL_FILE"
    echo "Successfully sent command to ${_CONTROL_FILE}"
    exit 0

elif [ -p "${1}/control" ]; then
    _CONTROL_FILE="${1}/control"
    shift
    echo "$@" >> "$_CONTROL_FILE"
    echo "Successfully sent command to ${_CONTROL_FILE}"
    exit 0
else
    echo "Unable to find valid pipe that accepts control commands at: ${1}"
    exit 1
fi

```

Would love to see an update here!

Also side note: Let me know if this is the proper channel so submit code issues like these.

## Reply by Eric Katzfey (ModalAI staff) · 2026-02-11 16:20:26 UTC

@jameskuesel Feel free to make the change and submit a PR

## Reply by jameskuesel · 2026-02-11 16:53:45 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Sorry my bad! Done!

## Reply by Eric Katzfey (ModalAI staff) · 2026-02-11 17:03:01 UTC (in reply to jameskuesel)

@jameskuesel Thanks! Merged
