Till Westmann | ea8ab39 | 2013-06-05 15:17:08 -0700 | [diff] [blame] | 1 | #/* |
| 2 | # Copyright 2009-2013 by The Regents of the University of California |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # you may obtain a copy of the License from |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | #*/ |
ramangrover29@gmail.com | 0d05818 | 2013-04-10 02:35:46 +0000 | [diff] [blame] | 15 | USERNAME=$1 |
| 16 | shift 1 |
| 17 | numargs=$# |
ramangrover29@gmail.com | 0330688 | 2013-04-12 17:09:45 +0000 | [diff] [blame] | 18 | for ((i=1 ; i <= numargs ; i=i+1)) |
ramangrover29@gmail.com | 0d05818 | 2013-04-10 02:35:46 +0000 | [diff] [blame] | 19 | do |
| 20 | host=$1 |
| 21 | ssh -l $USERNAME -oNumberOfPasswordPrompts=0 $host "echo $host" |
| 22 | shift 1 |
| 23 | done |