Return code different than 0? Attach last logfile.Let’s delete a file ( ~/sample/source/file01.bin) from the source to see if it will also delete the same file from the target: $ rm sample/source/file01.bin Return code 0? Attach last logfile.log with subject Penpen or whoever has 5 minutes, to make it easier, this is what I need: I give up until someone helps or/and wait for penpen to wake up. ![]() "C:\FFS\mailsend.exe" +bc +cc -v -smtp -ssl -port 465 -auth -from 1STEMAIL -to 1STEMAIL -cc 2NDEMAIL -user 1STEMAIL -pass PASSWORD -sub "FFS_COMPANYNAME/PCNAME-BACKUPNAME: %time%, %date% - Synchronization completed with errors" -attach "C:\FFS\Logs\%recent%" "C:\FFS\mailsend.exe" +bc +cc -v -smtp -ssl -port 465 -auth -from 1STEMAIL -to 1STEMAIL -cc 2NDEMAIL -user 1STEMAIL -pass PASSWORD -sub "FFS_COMPANYNAME/PCNAME-BACKUPNAME: %time%, %date% - Synchronization completed successfully" -attach "C:\FFS\Logs\%recent%" I tried to let it scan every log but I have the same result, all logs are sent as, even failed ones.įindstr /m /C:"processed" "C:\FFS\Logs\%recent%" ![]() bat files) -> mailalert.bat (instructions for emailing logs) -> mailsend.exe (only needed by mailalert.bat, smtp client). ffs_batch (with all the configuration of the folders, when and where about saving log files, what to do on completion, even launch. ffs_batch calls it.Īpologize if this wasn't clear from the beginning, I assumed you all know FreeFileSync.įreeFileSync.exe (main program, can run even manually, itself) -> Saved. It's made ONLY for mailsend.exe, ONLY to try to read and send the logs via email when the backup run is done and when. ffs_batch is done with the backup run, is the. ![]() They are two different kind of batch files, one must be launched from FreeFileSync called batch file but is an xml file with all the configurations inside, its extension is. (Sorry it's getting late, i go to bed now, i'll post tomorrow again.)Įdit: I've forgotten to escape the ) in echo's corrected it i also escape the ('s although not needed for better reading. If it does not what you want to, then just say what you see, why this is wrong, and what you want it to do instead. "C:\FFS\mailsend.exe" +bc +cc -v -smtp -ssl -port 465 -auth -from 1STEMAIL -to 1STEMAIL -cc 2NDEMAIL -user 1STEMAIL -pass PASSWORD -sub "FFS_COMPANYNAME/PCNAME-BACKUPNAME: %time%, %date% – Synchronization completed with errors" -attach "C:\FFS\Logs\%recent%"Įcho unexpected variable value ^(%variable%^). "C:\FFS\mailsend.exe" +bc +cc -v -smtp -ssl -port 465 -auth -from 1STEMAIL -to 1STEMAIL -cc 2NDEMAIL -user 1STEMAIL -pass PASSWORD -sub "FFS_COMPANYNAME/PCNAME-BACKUPNAME: %time%, %date% – Synchronization completed successfully" -attach "C:\FFS\Logs\%recent%" For /f "delims=" %%x in ('dir "C:\FFS\Logs\" /od /b') do set recent=%%xįindstr /m /C:"successfully" "C:\FFS\Logs\%recent%" & if "%variable%" = "uninitialized" ( set "variable=success" ) else echo initialized variable ^(%variable%^) should be overwritten in find number 1įindstr /m /C:"warnings" "C:\FFS\Logs\%recent%" & if "%variable%" = "uninitialized" ( set "variable=failed" ) else echo initialized variable ^(%variable%^) should be overwritten in find number 2įindstr /m /C:"errors" "C:\FFS\Logs\%recent%" & if "%variable%" = "uninitialized" ( set "variable=failed" ) else echo initialized variable ^(%variable%^) should be overwritten in find number 3įindstr /m /C:"aborted" "C:\FFS\Logs\%recent%" & if "%variable%" = "uninitialized" ( set "variable=failed" ) else echo initialized variable ^(%variable%^) should be overwritten in find number 4įindstr /m /C:"Nothing to synchronize" "C:\FFS\Logs\%recent%" & if "%variable%" = "uninitialized" ( set "variable=success" ) else echo initialized variable ^(%variable%^) should be overwritten in find number 5Įcho error: variable still uninitialized.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |