Topic "Problems setting up automated synchronization"

Author Message
Fieran

Guest


Hello Forum
I am having trouble setting up bat driven synchronization.
First off - I know I should post a log, but I am unable to get that to work

Here is my bat

winscp.com /script=synchronize.script /log=Sync.log /parameter %1 "/var/www/%~n1%~x1"

Here is my script

# Being intended for interactive session, we are not enabling batch mode
# Connect
open sftp://me:mypassword@142.104.69.195:22
# Synchronize paths provided via environment variables
synchronize remote "%1%" "%2%"

behaviour -
cmd window pops up and immediately closes - no synchronization takes place
log file does not appear with in send to where the script lives
log file does not appear in parallel with dir I tried to syncrhonize
log file does not appear within the dir I tried to synchronize
log file does not appear at the drive root where I tried to syncronize

placing the log command after the params for the script does not change the behaviour

assistance is most welcome

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Run the winscp.com from cmd.exe console window to see the output.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License