I've got two local files, one
config.sh that contains variable definitions, another
script.sh that contains a bash script.
Locally, I can do:
source config.sh; bash script.sh
I'm looking for the same thing via ssh, so far I got this working:
ssh user@host 'bash -s' < script.sh
But I'm not sure if I should use
cat or some input pipes
<(...) to get both config.sh & script.sh to be executed.
What would be the best, clean way to execute multiple commands that require some content to be piped in with ssh?