[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

06/22/2009 at 11:21AM PDT, ID: 24512109
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.5

convert linux script to run on windows xp

Asked by zenguru in Linux Setup, Windows NT Setup, Microsoft Operating Systems

I have the following working script on my local linux box in my home dir named deploy:

#/bin/bash
cd /home/revo/test3 && \
grails clean && \
grails prod war test39.war && \
echo "scp to remote"
scp ~/test3/test39.war root@44.249.185.169:/root/uploads && \
echo "tomcat stop"
ssh root@44.249.185.169 "/etc/init.d/tomcat stop" && \
ssh root@44.249.185.169 "rm -rf /usr/local/tomcat/webapps/ROOT/*" && \
ssh root@44.249.185.169 "cd /usr/local/tomcat/webapps/ROOT ; /usr/java/jdk/bin/jar -xvf /root/uploads/test39.war"  && \
ssh root@44.249.185.169 "/etc/init.d/tomcat start" && \
echo "all done"

I simply type ./deploy in terminal to deploy the whole thing to remote server from my local linux box.

Now I need to port above to my local Win XP box. Assume the script would be located at C:\ and instead of /home/revo/test3, I have C:/test3 folder on Win XP and have the same executable program grails on Win XP. Also on Linux I have ssh-add to connect with the remote server with passsword preauthenticated before the  script is run. But on Win XP there is no such setup. Assume the remote server credentials:  user name: root  password: pswd  So when you port above script to Win XP , it should also take care of this. On Win XP I have Putty installed and I also have Winscp.
So please rewrite above script to run in Win XP given the details above.
PLEASE NOTE: NO CYGWIN based solution as I cannot install this software under any circumstances.
I think it looks like writing win xp .bat file with windows equivalent script above.
 
Keywords: convert linux script to run on windows…
 
Loading Advertisement...
 
[+][-]06/22/09 10:46 PM, ID: 24689120

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux Setup, Windows NT Setup, Microsoft Operating Systems
Sign Up Now!
Solution Provided By: OliverRahner
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06/24/09 04:18 AM, ID: 24699973

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/08/09 02:41 PM, ID: 25051874

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091028-EE-VQP-85 - Hierarchy / EE_QW_3_20080625