Re: [LAD] How to get NSM?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Wednesday, April 11, 2012 - 5:47 pm

On 04/11/2012 01:02 PM, rosea.grammostola wrote:

This script should work to load LinuxSampler as binary in a nsm-proxy.
The lscp file should be loaded via the argument option in the nsm-proxy.
Only problem I have, it doesn't kill LinuxSampler, when I stop the
nsm-proxy or the session. I probably miss something, maybe someone can
test it too.

#!/bin/bash

linuxsampler &

LSPID=$!

# wait for LS to init
sleep 4;

# tell it what file to load
cat "$1" | nc localhost 8888

#handle SIGTERM from NSM by killing LS.
trap 'kill -TERM $LSPID' SIGTERM

#wait for LS to die naturally
wait $LSPID
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] , Edward Diehl, (Wed Apr 11, 12:47 am)
Re: [LAD] How to get NSM?, Mark McCurry, (Wed Apr 11, 12:55 am)
Re: [LAD] How to get NSM?, rosea.grammostola, (Wed Apr 11, 10:09 am)
Re: [LAD] How to get NSM?, Emanuel Rumpf, (Wed Apr 11, 10:55 am)
Re: [LAD] How to get NSM?, rosea.grammostola, (Wed Apr 11, 11:02 am)
Re: [LAD] How to get NSM?, rosea.grammostola, (Wed Apr 11, 5:47 pm)
Re: [LAD] How to get NSM?, thijs van severen, (Wed Apr 11, 10:14 am)
Re: [LAD] How to get NSM?, rosea.grammostola, (Wed Apr 11, 10:16 am)