Thanks - That worked!!
Using either:
“shell_cmd”: “ssh -i ~/.ssh/MyKey me@MyPiAddress /usr/bin/python “$file_name””,
or
“shell_cmd”: “ssh -i ~/.ssh/MyKey me@MyPiAddress /usr/bin/python jerryweather.py”,
since it is in the root directory on the pi.
The only thing that would make this ideal is to not have to make a separate build for each path file I might use on the remote machine.
The concept being the break the file name into to parts:
One being the path to the file name ($jerrys_path_to_pi_filename) and the other being the actual file stored in $file_name with the final build looking like this:
“shell_cmd”: "ssh -i ~/.ssh/MyKey me@MyPiAddress /usr/bin/python $jerrys_path_to_pi_filename/$file_name ,
Since ST sees the file as “/Volumes/Home Directory/jerryweather.py” the only thing I need to do ( I assume) is to replace /Volumes/Home Directory with $jerrys_path_to_pi_filename.
It seems the better solution might be to just strip /Volumes/Home Directory from $file.
I can make a python script to do that but not sure how this works and how I would pass that back to $file or a user defined variable.
Again, thanks for help.
Jerry