llloret / osmid

osmid is a tool to bridge MIDI and OSC. It is currently in use in Sonic Pi
Other
72 stars 12 forks source link

m2o in background from script not running #63

Open spinne1000 opened 1 year ago

spinne1000 commented 1 year ago

I am running m2o under Debian11 like from command prompt in a bash terminal: m2o -v m2oMidi -o 7700

works fine.

If I run it it background like: m2o -v m2oMidi -o 7700 & it also works.

But if I do the same from within a script:

#!/bin/bash
m2o -v m2oMidi -o 7700 &

while true
do
    #some more stuff until ctrl-c
    # want to start a midi note generator here and then aconnect it to m2o (or disconnect)
done

in another terminal: ps -elf does not show the m2o task. I tried it with nohup in front of the line with the same result. The same with disown at the end of the line.

Any ideas how I can run m2o in background from the script?

thanks