Exemplo n.º 1
0
 /// <summary>
 /// This is similar to child_process.exec() except it does not execute a subshell but rather the specified file directly. This makes it slightly leaner than child_process.exec. It has the same options.
 /// </summary>
 /// <param name="file">The filename of the program to run</param>
 /// <param name="args">Array List of string arguments</param>
 /// <param name="options">options Object
 /// <list type="bullets">
 /// <item> cwd String Current working directory of the child process</item>
 /// <item> stdio Array|String Child's stdio configuration. (See above)</item>
 /// <item> customFds Array Deprecated File descriptors for the child to use for stdio.</item>
 /// <item> env Object Environment key-value pairs</item>
 /// <item> encoding String (Default: 'utf8')</item>
 /// <item> timeout Number (Default: 0)</item>
 /// <item> maxBuffer Number (Default: 200*1024)</item>
 /// <item> killSignal String (Default: 'SIGTERM')</item></list></param>
 /// <param name="callback"> Function called with the output when process terminates</param>
 /// <returns>ChildProcess object</returns>
 public static object execFile(JsString file, JsArray <JsString> args, ExecOptions options, JsAction <JsError, Buffer, Buffer> callback)
 {
     return(null);
 }
Exemplo n.º 2
0
 /// <summary>
 /// This is similar to child_process.exec() except it does not execute a subshell but rather the specified file directly. This makes it slightly leaner than child_process.exec. It has the same options.
 /// </summary>
 /// <param name="file">The filename of the program to run</param>
 /// <param name="args">Array List of string arguments</param>
 /// <param name="options">options Object
 /// <list type="bullets">
 /// <item> cwd String Current working directory of the child process</item>
 /// <item> stdio Array|String Child's stdio configuration. (See above)</item>
 /// <item> customFds Array Deprecated File descriptors for the child to use for stdio.</item>
 /// <item> env Object Environment key-value pairs</item>
 /// <item> encoding String (Default: 'utf8')</item>
 /// <item> timeout Number (Default: 0)</item>
 /// <item> maxBuffer Number (Default: 200*1024)</item>
 /// <item> killSignal String (Default: 'SIGTERM')</item></list></param>
 /// <param name="callback"> Function called with the output when process terminates</param>
 /// <returns>ChildProcess object</returns>
 public static object execFile(JsString file, JsArray<JsString> args, ExecOptions options, JsAction<JsError, Buffer, Buffer> callback) { return null; }
Exemplo n.º 3
0
 /// <summary>
 /// Runs a command in a shell and buffers the output.
 /// <example>
 /// <code>
 /// var exec = require('child_process').exec,
 ///    child;
 ///
 // child = exec('cat *.js bad_file | wc -l',
 ///     function (error, stdout, stderr) {
 ///     console.log('stdout: ' + stdout);
 ///     console.log('stderr: ' + stderr);
 ///     if (error !== null) {
 ///       console.log('exec error: ' + error);
 ///     }
 /// });
 /// </code>
 /// The callback gets the arguments (error, stdout, stderr). On success, error will be null. On error, error will be an instance of Error and err.code will be the exit code of the child process, and err.signal will be set to the signal that terminated the process.
 /// </example>
 /// <example>There is a second optional argument to specify several options. The default options are
 /// <code>
 /// { encoding: 'utf8',
 ///  timeout: 0,
 ///  maxBuffer: 200*1024,
 ///  killSignal: 'SIGTERM',
 ///  cwd: null,
 ///  env: null }
 /// </code>
 /// If timeout is greater than 0, then it will kill the child process if it runs longer than timeout milliseconds. The child process is killed with killSignal (default: 'SIGTERM'). maxBuffer specifies the largest amount of data allowed on stdout or stderr - if this value is exceeded then the child process is killed.
 /// </example>
 /// </summary>
 /// <param name="command">The command to run, with space-separated arguments</param>
 /// <param name="options">options Object
 /// <list type="bullets">
 /// <item> cwd String Current working directory of the child process</item>
 /// <item> stdio Array|String Child's stdio configuration. (See above)</item>
 /// <item> customFds Array Deprecated File descriptors for the child to use for stdio.</item>
 /// <item> env Object Environment key-value pairs</item>
 /// <item> encoding String (Default: 'utf8')</item>
 /// <item> timeout Number (Default: 0)</item>
 /// <item> maxBuffer Number (Default: 200*1024)</item>
 /// <item> killSignal String (Default: 'SIGTERM')</item></list></param>
 /// <param name="callback">Function called with the output when process terminates</param>
 /// <returns>ChildProcess object</returns>
 public static object exec(JsString command, ExecOptions options, JsAction <JsError, Buffer, Buffer> callback)
 {
     return(null);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Runs a command in a shell and buffers the output.
 /// <example>
 /// <code>
 /// var exec = require('child_process').exec,
 ///    child;
 ///
 // child = exec('cat *.js bad_file | wc -l',
 ///     function (error, stdout, stderr) {
 ///     console.log('stdout: ' + stdout);
 ///     console.log('stderr: ' + stderr);
 ///     if (error !== null) {
 ///       console.log('exec error: ' + error);
 ///     }
 /// });
 /// </code>
 /// The callback gets the arguments (error, stdout, stderr). On success, error will be null. On error, error will be an instance of Error and err.code will be the exit code of the child process, and err.signal will be set to the signal that terminated the process.
 /// </example>
 /// <example>There is a second optional argument to specify several options. The default options are
 /// <code>
 /// { encoding: 'utf8',
 ///  timeout: 0,
 ///  maxBuffer: 200*1024,
 ///  killSignal: 'SIGTERM',
 ///  cwd: null,
 ///  env: null }
 /// </code>
 /// If timeout is greater than 0, then it will kill the child process if it runs longer than timeout milliseconds. The child process is killed with killSignal (default: 'SIGTERM'). maxBuffer specifies the largest amount of data allowed on stdout or stderr - if this value is exceeded then the child process is killed.
 /// </example>
 /// </summary>
 /// <param name="command">The command to run, with space-separated arguments</param>
 /// <param name="options">options Object
 /// <list type="bullets">
 /// <item> cwd String Current working directory of the child process</item>
 /// <item> stdio Array|String Child's stdio configuration. (See above)</item>
 /// <item> customFds Array Deprecated File descriptors for the child to use for stdio.</item>
 /// <item> env Object Environment key-value pairs</item>
 /// <item> encoding String (Default: 'utf8')</item>
 /// <item> timeout Number (Default: 0)</item>
 /// <item> maxBuffer Number (Default: 200*1024)</item>
 /// <item> killSignal String (Default: 'SIGTERM')</item></list></param>
 /// <param name="callback">Function called with the output when process terminates</param>
 /// <returns>ChildProcess object</returns>
 public static object exec(JsString command, ExecOptions options, JsAction<JsError, Buffer, Buffer> callback) { return null; }