I hate developing code directly on the target machine - I would much rather edit them locally in Eclipse, scp them and checking them into SVN when they are stable.
So this utility provided by WinSCP is quite handy at copying remotely the files for me whenever I save them to the local folder:
WinSCP.exe soa@remotehost.com /keepuptodate C:\pierre\
workspace\myscripts /home/soa/targetdir/scripts
keepuptodate is the magic option
Showing posts with label WinSCP. Show all posts
Showing posts with label WinSCP. Show all posts
Monday, August 6, 2012
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
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
Labels:
WinSCP
Automate those tedious remote copy tasks with WINSCP
Install WinSCP
create a batch file containing:
"c:\Program Files\WinSCP\WinSCP.com" /script=copyall.script
pause
in copyall.script write:
option confirm off
open username:password@remotehost
lcd localPathWhereYourFilesAreStored
cd remotePathWhereYouWantToPutYourFiles
put file1
put file2
put file3
exit
create a batch file containing:
"c:\Program Files\WinSCP\WinSCP.com" /script=copyall.script
pause
in copyall.script write:
option confirm off
open username:password@remotehost
lcd localPathWhereYourFilesAreStored
cd remotePathWhereYouWantToPutYourFiles
put file1
put file2
put file3
exit
Labels:
WinSCP
Subscribe to:
Posts (Atom)