Here is what I am trying to do:
ssh -D localhost:9900 firstname.lastname@example.org
firefox -P profilename
What happens when the script executes is that the ssh connection works and parks me at the remote hosts's shell login. Therefore, the "firefox" command refuses to execute. I need to know how to make the "ssh" connection occur, stay open, and go into the background so that the rest of the script can execute.
If I could also do this with the "firefox" line so that the entire term window could be closed would also be helpful.
Any help is much appreciated. Thanks in advance.