|
From: rosea.grammostola <ros...@gm...> - 2012-04-10 20:40:58
|
On 04/10/2012 10:18 PM, Luis Garrido wrote: > Maybe something like this will work, since apparently nsmd sends SIGTERM > to the applications involved in the session when the 'quit' command is > activated: > > #!/bin/bash > > linuxsampler & > LSPID=$! > sleep 4 > nc localhost 8888 < myfile.lscp > trap "kill $LSPID" SIGTERM > wait $LSPID Thanks, but the lscp file should be loaded as argument in the proxy app in NSM. So in my previous script I have $1, which should allow me to add the lscp file as argument in the proxy app in NSM. Anyway, this doesn't kill it either. Regards, \r |