412 |
412 |
413 /* GNU bash */ |
413 /* GNU bash */ |
414 |
414 |
415 def bash(script: String, |
415 def bash(script: String, |
416 description: String = "", |
416 description: String = "", |
|
417 ssh: SSH.System = SSH.Local, |
417 cwd: JFile = null, |
418 cwd: JFile = null, |
418 env: JMap[String, String] = settings(), |
419 env: JMap[String, String] = settings(), |
419 redirect: Boolean = false, |
420 redirect: Boolean = false, |
420 input: String = "", |
421 input: String = "", |
421 progress_stdout: String => Unit = (_: String) => (), |
422 progress_stdout: String => Unit = (_: String) => (), |
422 progress_stderr: String => Unit = (_: String) => (), |
423 progress_stderr: String => Unit = (_: String) => (), |
423 watchdog: Option[Bash.Watchdog] = None, |
424 watchdog: Option[Bash.Watchdog] = None, |
424 strict: Boolean = true, |
425 strict: Boolean = true, |
425 cleanup: () => Unit = () => () |
426 cleanup: () => Unit = () => () |
426 ): Process_Result = { |
427 ): Process_Result = { |
427 Bash.process(script, |
428 Bash.process(script, description = description, ssh = ssh, cwd = cwd, env = env, |
428 description = description, cwd = cwd, env = env, redirect = redirect, cleanup = cleanup). |
429 redirect = redirect, cleanup = cleanup). |
429 result(input = input, progress_stdout = progress_stdout, progress_stderr = progress_stderr, |
430 result(input = input, progress_stdout = progress_stdout, progress_stderr = progress_stderr, |
430 watchdog = watchdog, strict = strict) |
431 watchdog = watchdog, strict = strict) |
431 } |
432 } |
432 |
433 |
433 |
434 |