Skip to main content
deleted 1 character in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 239

I've an application on my machine that is working with ana 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 [email protected] "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?

I've an application on my machine that is working with an 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 [email protected] "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?

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 [email protected] "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?

Source Link
Martin
  • 143
  • 8

ssh execute remote script

I've an application on my machine that is working with an 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 [email protected] "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?