Event handlers are optional functions that can be implemented in user scripts and called by AutoShell when certain events occur. If present, the event handler is called when the child process writes to stderr. You can call this handler multiple times.
This method has the following syntax:
receivedErrOutput(s)
Note: The AutoShell ignores event handler return values.
Example
Display error output while being received:
out = new OSRedirect(); out.receivedErrOutput = function(s){qout(s);}; ! ver -output out
Copyright © 2013 CA. All rights reserved. |
|