![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
No need to put the host in backticks though, you already have that value locally.
Code:
host="10.72.169.$i" server=`ssh -o ConnectTimeout=3 root@10.72.169.$i 'hostname'` release=`ssh -o ConnectTimeout=3 root@10.72.169.$i 'cat /etc/redhat-release'` echo "$host $server $release" >> result |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|