Quote:
Originally Posted by otheus
This doesn't work. Are you trying to say that when you log into machine X you want shell XS, but if you log into machine Y you want shell XY? Is the password/login information common to both machines? Will the administrator let you make very simple changes to the configuration of either host?
|
Thats the problem dude..... admin restrictions...
So what i did was...i used "here document" concept in the script
for MyServer in `cat ServerNames.txt`
do
echo "\n Logging onto $MyServer"
ssh $MyServer -l nyop <<EOT
ksh /tmp/Get_ParserInfo.ksh.ORG
EOT
echo " Script completed on $MyServer "
By this i was able to run the the script by logging onto other shell from my current shell
Hope dint confuse you!!!! 