Please provide complete solution. If some is expert in writing windows bat files and linux shell scripts, then that person can post the solution in 10 minutes flat. This service is not free for me and I am paying $$$ every month so I expect solution rather than a link or a link there posting to refer me to somewhere else. Otherwise what is the use of experts to me?
Anyway I have now taken care of generating rsa pub and private keys in Win Xp and I am now able to run
this command:
C:\pscp -sftp c:\bb\UserGuide.pdf rsazen:/root/uploads
the above will upload the specified file to my remote server specified as rsazen (saved putty session)
without asking me password.
So please now write Windows .bat file to convert above linux to windows.
I tried the following but it does not work bicuz only the first command is executed and the bat file is exited.
cd c:\test3
grails clean \
grails prod war test39.war
So Please complete the bat file that covers all the commands in linux shell script above.
Main Topics
Browse All Topics





by: OliverRahnerPosted on 2009-06-22 at 22:46:28ID: 24689120
Have a look at the PuTTY command line tools Plink and PSCP (Documentation at http://the.earth.li/~sgtat ham/putty/ 0.60/htmld oc/ Chapter 7.html#pli nk-batch and http://the.earth.li/~sgtat ham/putty/ 0.60/htmld oc/ Chapter 5.html#psc p).
For authentication, ssh-key-based authentication would be the best method.
All of PuTTY's tool share a common connection storage, which contains predefined ssh-connections with specific settings. There, you can choose an ssh-key-file to use for your specific connection.
If you then use this stored connection with Plink and PSCP, you don't have to enter a password.