Skip to content

Commit

Permalink
Merge pull request #629 from mv1388/job-created-msg-extension
Browse files Browse the repository at this point in the history
Added ssh connection command to the instance creation notification
  • Loading branch information
mv1388 committed Oct 10, 2020
2 parents e0ddadd + 54bbc32 commit f1e7b01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/AWS/submit_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ ssh -i $key_path $username@$ec2_instance_address \
"source activate $py_env ; tmux new-session -d -s 'training' './finish_prepare_instance.sh ; cd project ; ./run_experiment.sh $terminate_setting --experiment-script $experiment_script_file $log_upload_setting --cleanup-script' \; pipe-pane 'cat > $logging_path'"

echo "Instance IP: $ec2_instance_address"
echo "To easily ssh connect into the running job session execute:"
echo " ./ssh_to_instance.sh $ec2_instance_address -s"

if [ $ssh_at_start == true ]; then
./ssh_to_instance.sh $ec2_instance_address --os-name $username --ssh-tmux
Expand Down

0 comments on commit f1e7b01

Please sign in to comment.