The first line does work and starts LinuxSampler, as does usleep. However I am unable to send it a lscp script with the following line. I have tried with both a helper script (send_lscp) and directly via netcat with no results or errors either for that matter.
Ah, this worked! Thank you Robin very much for that. My goal is to create a lua script that can basically replace qsampler or fantasia and make something that is usable from within Ardour/MB. The first step was obviously being able to communicate with linuxsampler.
Next is to make this work with the linuxsampler process spawned by the LV2 plugin.