I have an rsync
script that runs on one Linux server to synchronize files with another Linux server. Is there a way to launch a script on one of the Linux machines without actually opening an interactive ssh
session to the server?
I have an rsync
script that runs on one Linux server to synchronize files with another Linux server. Is there a way to launch a script on one of the Linux machines without actually opening an interactive ssh
session to the server?
You should do it via a SSH command. You just need to setup plink.exe . You can download it at:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Then, from a batch file like this one, exectute it:
If you have a shell script, then consider Cywgin. It takes a while to install, but you get a full suite of common Linux tools running on Windows, so you won't have to change your script at all.
If you want to automate a task, you might consider plink. It actually uses ssh (or telnet or raw) to connect to another machine. But you can use it to connect and run a command in one line. Check putty documentation for more details:
http://www.chiark.greenend.org.uk/~sgtatham/putty/docs.html
I understand that you have a pre-written script, but maybe you can get everything you need done with one of the many "rsync for cygwin repackages" like cwrsync and setting up a Windows scheduling job using cwrsync.