Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Feature Requests
  4. voxl-send-command exit status implementation request

voxl-send-command exit status implementation request

Scheduled Pinned Locked Moved Feature Requests
4 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jameskuesel
    Contributor
    wrote on last edited by jameskuesel
    #1

    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.

    Link Preview Image
    scripts/voxl-send-command · master · voxl / VOXL SDK / Utilities / voxl-mpa-tools · GitLab

    Tools and utilities specific to MPA.

    favicon

    GitLab (gitlab.com)

    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.

    Eric KatzfeyE 1 Reply Last reply
    0
    • J jameskuesel

      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.

      Link Preview Image
      scripts/voxl-send-command · master · voxl / VOXL SDK / Utilities / voxl-mpa-tools · GitLab

      Tools and utilities specific to MPA.

      favicon

      GitLab (gitlab.com)

      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.

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

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

      J 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

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

        J Offline
        J Offline
        jameskuesel
        Contributor
        wrote on last edited by
        #3

        @Eric-Katzfey

        Sorry my bad! Done!

        Eric KatzfeyE 1 Reply Last reply
        0
        • J jameskuesel

          @Eric-Katzfey

          Sorry my bad! Done!

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @jameskuesel Thanks! Merged

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          ModalAI
          Categories Recent Tags ModalAI.com Docs
          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups