0

I have board server, in which i want to execute a gstreamer command from parmiko which will take the input file as a argument

this one is working

stdin,stdout,stderr=ssh_client.exec_command('ls')

want to execute below command but not working

stdin,stdout,stderr=ssh_client.exec_command('gst_app /media/card/pipeline.cfg')

want to execute a gst_app /media/card/pipeline.cfg command from ssh_client.exec_command

can anyone please help

venkatesh
  • 141
  • 3
  • 13

1 Answers1

0

If a command does not work, start by reading its error output.

Use stderr.readlines() for that.


Quite often the error is "<command> not found". For that see
Some Unix commands fail with "<command> not found", when executed using Python Paramiko exec_command

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992