The disable-interface script is an example that demonstrates how a configuration can be committed from an op-script. This script will deactivate interface 'ge-0/0/2' upon receiving a PING_TEST_FAILED event, which is generated by rpm when the ping test fails. The ability to commit configuration from an op-script is effective in Junos 9.3.
Read the document disable-interface