On Sync script

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

On Sync script

Postby mikefarmeritp on Fri Feb 03, 2012 4:16 pm

Is it possible to run a script after a sync check and/or successfull sync? I'm looking for a way to centrally know if multiple machines have sync'd. Ideally the application would have some variable output for job name/computername/etc.
mikefarmeritp
 
Posts: 4
Joined: Fri Feb 03, 2012 4:11 pm

Re: On Sync script

Postby superflexible on Fri Feb 03, 2012 4:20 pm

You can specify a command line to execute before or after via a checkmark on the Job tab sheet in the profiles.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: On Sync script

Postby mikefarmeritp on Mon Feb 06, 2012 12:41 pm

Are there variables for things like Job Name, Errors, etc? or is this strictly just a 'run this after job'? Does the same exist on the MAC product?
mikefarmeritp
 
Posts: 4
Joined: Fri Feb 03, 2012 4:11 pm

Re: On Sync script

Postby superflexible on Mon Feb 06, 2012 1:18 pm

There are some variables for the "execute after" command:

$LEFT = left path of the job
$RIGHT = right path of the job
$LOGFILE = complete path to log file
$RESULT = GOOD or BAD
$MSG = result summary (such as "5 copied")

In addition, you can specify different command lines for good or bad, as outlined on the dialog:

-error.bat :: ++copied.bat :: +ok.bat

ok.bat is called when there was no error but nothing to copy.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: On Sync script

Postby mikefarmeritp on Mon Feb 06, 2012 2:49 pm

I don't see those options in the MAC product? the Execute after function?
mikefarmeritp
 
Posts: 4
Joined: Fri Feb 03, 2012 4:11 pm

Re: On Sync script

Postby superflexible on Mon Feb 06, 2012 2:52 pm

It's in the same place. On the Job tab sheet.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: On Sync script

Postby mikefarmeritp on Mon Feb 06, 2012 5:40 pm

one last question - how does that apply if setup in continuous mode, still runs the script every time it checks or there is a change?
mikefarmeritp
 
Posts: 4
Joined: Fri Feb 03, 2012 4:11 pm

Re: On Sync script

Postby superflexible on Tue Feb 07, 2012 5:08 am

In real-time mode, it does not "check". It receives notifications from Windows about changes. Then, the job is invoked with the information about these changes. Every time that happens, it will trigger the script.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm


Return to Windows Support * new forum: www.syncovery.com/forum

cron