Error Executing the script.
Hi ,
I m getting an error after executing the script. My script. Script is used to find out the date on 8 different machines(mentioned in SERVERNAMES file). I have added public key to avoid ssh password and ssh without password working fine. Code:
#!/bin/sh Quote:
Code:
tcgetattr: Inappropriate ioctl for device What can be the issue? |
Well my question back to you would be if you execute the following:
Code:
ssh -t -t -q root@10.180.5.231 date |
Just a guess:
After using ssh to login to the 1st server, don't you need to log out? What happens if you do the commands manually? i.e. log into server#1, and get the date, then log in to #2 |
VM_Date=$( ssh -T -q root@$1 date < /dev/null )
runs perfectly fine. My problem is now solved. |
All times are GMT -5. The time now is 02:20 PM. |