@grissess batch scripts for the ITL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
222 B

6 years ago
6 years ago
  1. #!/bin/bash
  2. command="$(cat subcommand/kill.sh)"
  3. for host in $(cat all_addrs); do
  4. sshpass -p"$2" ssh "${1}@${host}" -p 13699 -o StrictHostKeyChecking=no -o PubkeyAuthentication=no "$command" 2>> /tmp/batch_errors &
  5. done