Previous Topic: OSRedirect.receivedErrOutput MethodNext Topic: OSRedirect.receivedResult Method


OSRedirect.receivedOutput Method

Event handlers are optional functions that can be implemented in user scripts called by AutoShell when certain events occur. If present, the event handler is called when the child process writes to stdout. You can call this handler multiple times.

This method has the following syntax:

receivedOutput(s)

Note: The AutoShell ignores event handler return values.

Example

Display output while being received:

out = new OSRedirect();
out.receivedOutput = function(s){qout(s);};
! ver -output out

See also:

OSRedirect.receivedErrOutput Method

OSRedirect.receivedResult Method

! Command--Invoke Command or Child Process (Cmdlet)

!! Command--Invoke Command or Child Process and Auto-capture Output (Cmdlet)