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 08-29-2008
palsevlohit_123 palsevlohit_123 is offline
Registered User
  
 

Join Date: Aug 2008
Location: India-Chennai
Posts: 120
$ cat myscript.ksh
ssh -l root HOSTNAME
echo "WELCOME to ROOT"
<do your stuff>
exit


$ sh myscript.ksh >> myscript.log

Will prompt for the password of root and you have to give manually.