I've an application on my machine that is working with a remote one. Before I'm able to use this app, I need to run some commands on the remote one. Here for I've created an script named startUpRun.sh
. In this script there are some commands for a gstreamer connection like
gst-launch-1.0 pulsesrc ! audio/x-raw,format=S16LE,channels=1,rate=16000 ! audioconvert ! rtpL16pay ! udpsink host=192.168.1.1 port=5555 &
When I execute the script during an ssh session on the remote machine this works completely fine for me and this script does what it should do.
But when I invoke this script by executing it from my machine using
sshpass ssh -o StrictHostKeyChecking=no -t root@192.168.1.2 "source ./startUpRun.sh"
but unfortunately no gstreamer instance gets started. I've checked this multiple times using pgrep gst
and top
.
Does somebody have an idea what I probably missed?