Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. EMRosa
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    EMRosa

    @EMRosa

    0
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    EMRosa Unfollow Follow

    Latest posts made by EMRosa

    • RE: [DSF Extension] Exec On MCode (was: Shutdown SBC)

      Thanks so much for the assist! I’ll try that, but I was using the exact process as listed from

      ps -aux | grep python3

      This lists the process as “python3 location/to/script/script.py”.

      In my case, I was able to put the command line call in another python script and just call it that way. I just wasn’t sure if it would be helpful (or necessary) for execonmcode to be able to send quoted arguments. (Or more likely, if I was doing it wrong. Haha)

      I’ll let you know if adding the path to python helps.

      posted in DSF Development
      EMRosaundefined
      EMRosa
    • RE: [DSF Extension] Exec On MCode (was: Shutdown SBC)

      @wilriker thanks for the quick reply! No worries; at least it wasn’t something related to my Linux-literacy (or lack thereof). Haha. Your work and efforts on this implementation are inspirational.

      posted in DSF Development
      EMRosaundefined
      EMRosa
    • RE: [DSF Extension] Exec On MCode (was: Shutdown SBC)

      Great work! This is incredibly useful and appreciated!

      Is there a way to pass quotes through the -command argument?
      For example:

      execonmcode --command "sudo pkill -fx "blah, blah, blah"" -mCode 7720 -execAsync
      

      I've tried single quotes, escape characters, and changing it to an argument passed through the m-code command;

      execonmcode --command "sudo pkill -fx %F" -mCode 7720 -execAsync
      

      and then tried from DWC:

      M7720 F"python3 script.py"
      

      but the full argument gets lost. I foolishly tried double quotes and DSF crashed. haha.

      Please, forgive my inexperience. There is probably a simple answer to this, but it seems to escape my googling ability.

      posted in DSF Development
      EMRosaundefined
      EMRosa