Thursday, March 24, 2011

Restarting your remote Application Server from Windows, with WinSCP

"c:\Program Files\WinSCP\WinSCP.com" /script=restart.script

and restart.script is:

option confirm off
open username:password@hostname
cd /pathToYourStartStopScripts
call ./stop.sh
call ./start.sh




easy does it!

No more need to putty to your remote AppServer host to recycle the server

No comments: