You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
``String`` containing the command used to gracefully shut down an interactive Perl script when PEB is closed
99
+
``String`` containing the command used to gracefully shut down [an interactive Perl script](#interactive_perl_scripts) when PEB is closed
100
100
Upon receiving it, an interactive script must start its shutdown procedure.
101
101
102
102
***scriptExitConfirmation**
103
-
``String`` used to signal PEB that an interactive Perl script completed its shutdown
103
+
``String`` used to signal PEB that [an interactive Perl script](#interactive_perl_scripts) completed its shutdown
104
104
All interactive scripts must exit in 3 seconds after ``scriptExitCommand`` is given or any unresponsive scripts will be killed and PEB will exit.
105
105
106
-
Perl scripts running for a long time should have ``$|=1;`` among their first lines to disable the built-in buffering of the Perl interpreter. Some builds of Perl may not give any output until the script is finished when buffering is enabled.
106
+
Perl scripts running for a long time should have ``$|=1;`` among their first lines to disable the built-in buffering of the Perl interpreter. Some builds of Perl may not give any output until the script has ended when buffering is enabled.
107
107
108
108
## Interactive Perl Scripts
109
109
Each PEB interactive Perl script must have its own event loop waiting constantly for new data on STDIN for a bidirectional connection with PEB. Many interactive scripts can be started simultaneously in one browser window. One script may be started in many instances, provided that it has a JavaScript settings object with a unique name. Interactive scripts must also have the ``scriptExitCommand`` object property. The ``scriptExitConfirmation`` object property is not mandatory, but highly recommended for a quick shutdown of PEB.
0 commit comments