Attix5 Pro FAQ
Search:     Advanced search

Script plug-in: Scripts "hang"

Article ID: 124
Last updated: 13 Jul, 2012

Sometimes a Windows batch file works fine when executed from the command prompt but when executed by the script plug-in it seems to hang. This is because some executables expect to write out results to the screen and if it cannot it will hang. This can be fixed as follows:

Instead of supplying "script.bat" in the script plug-in, enter "script.bat > nul" or better yet "script.bat > c:\scriptsresult.txt".

If the above does not work individual lines in the script file (especially when calling an executable) can also be appended with "> nul" or "> filename"

For example:

If you create a script d.bat that looks like this:

@echo off
dir c:

and you place "d.bat" in your script plugin, the backup will never complete. But if you place "d.bat > nul" in the script plug-in it will execute and complete the backup. If you enter "d.bat > c:\result.txt" the results will be written to c:\results.txt.

Article ID: 124
Last updated: 13 Jul, 2012
Revision: 1
Views: 7425
Comments: 0
Posted: 29 Feb, 2012 by Van Rensburg J.
Updated: 13 Jul, 2012 by Van Rensburg J.
This article was:  
Prev   Next
Article 123 - Email notification not sending after backup     Article 125 - Lotus Domino: Error in log - "Backup terminated due to timeout"