I am SSHing into a machine and running the following commands -
ssh -n ubuntu@ip "python /home/ubuntu/hme/rank.py $directory"
ssh -n ubuntu@ip "aws s3 cp ~/hme/$directory/$process/$process.tab s3://data/$directory/$process.tab --profile data"
$directory and $process are variables that we need to pass to the ubuntu@ip machine.
How do I run both of these commands in one SSH statement?