start_job = function (params, res) {
        if (typeof params.job === 'undefined') {
            res.writeHead(400);
            res.end();
            return;
        }

        if (params.job.indexOf('../') >= 0) {
            res.writeHead(403);
            res.end();
            return;
        }

        var methods = {
            output: function (lines) {
                lines.forEach(function (line) {
                    res.write(line + '<br />');
                });
            }
        };

        if (params.input && params.input != '') {
            methods.input = params.input.split(params.sep || '\r\n');
        }

        var proc_options = {
            extend: {
                methods: methods
            },
            debug: !!params.debug,
            silent: !params.debug,
            global_timeout: params.timeout,
            args: params.args ? params.args.split(' ') : null
        };

        processor.Processor.prototype.status = function (msg, type) {
            switch (type) {
            case 'debug':
                msg = '<font color="blue">DEBUG</font>: ' + msg;
                break;

            case 'error':
            case 'fatal':
                msg = '<font color="red">ERROR</font>: ' + msg;
                break;

            case 'ok':
                msg = '<font color="green">OK</font>: ' + msg;
                break;

            case 'bold':
                msg = '<strong>' + msg + '</strong>';
                break;
            default:
                msg = '<font color="orange">INFO</font>: ' + msg;
                break;
            }
            res.write(msg + '<br />');
        };

        console.log('Running job "' + params.job + '"');

        processor.start(module_dir + '/' + params.job, proc_options, function (err) {
            res.end();
        });
    }
exports.web

Run node.io through a web interface.

@param {Array} args
@api public