Shell_command help

Need help. I’m trying to call the following command line:

curl -i -X POST -H "Content-Type: application / json" -d '{"jsonrpc": "2.0", "method": "Addons.ExecuteAddon", "params": {"wait": false, "addonid": "", "params": {"action": "show_preview", "camera_number": "1", "id": "1"}}, "id": 2 '

I’m trying the following:

show_cam: ‘ssh /home/textcommands/cam.txt’

I already tried the following variants

show_cam: ‘ssh /home/textcommands/cam.txt’
show_cam: ‘ssh /home/textcommands/’
show_cam: bash /home/textcommands/

I can not execute the command. Can someone help me ? What am I doing wrong ?

I get this error:

Error running command: bash / home / textcommands / cam.txt, return code: 127
NoneType: None

I solved. The problem is where I was saving the file.