0

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?

Aaron
  • 1,255
  • 2
  • 11
  • 24
  • 1
    Some good answers at this potential duplicate: [Running multiple commands in one line in shell](https://stackoverflow.com/questions/5130847/running-multiple-commands-in-one-line-in-shell) – JNevill Feb 22 '22 at 21:04

0 Answers0