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.
|
#!/usr/bin/env sh
|
|
|
|
COMMAND="${1}"
|
|
shift
|
|
|
|
while [ "${#}" -gt 0 ]; do
|
|
printf '%40s\r%s\n' '' "${1}" | tr ' ' '-'
|
|
[ "${1}" = "local" ] && { bash -c "${COMMAND}"; true; } || ssh -t "${1}" "${COMMAND}"
|
|
shift
|
|
done
|