I need to pass a bash command into another process that needs to do the following:
- ssh into a computer. This does not require a password prompt.
- set up some environment variables: source path/to/script.sh
- launch a gui program that requires (2).
Thus far, I have the following:
ssh -n -f pc-name -XYC nohup source folder/setup_thing.sh; program
For my efforts I get:
nohup: failed to run command `source': No such file or directory bash: program: command not found
How to I restructure the above command such that it executes successfully?