The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-06-2009
sdosanjh sdosanjh is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 27
Quote:
Originally Posted by otheus View Post
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!!!!