Launching a shell script from Java



What's the trick to launch a shell script from Java? I would have thought the System class would have had this, but does not appear to. Surely, Java would be capable of this, right?

Mark
.



Relevant Pages

  • Re: problems getting stderr and stdout from process object
    ... running into a world of hurt. ... side "OS X only Java app" (it's an app written in Java ... Bash shell script that redirects sdtout/err to files ...
    (comp.lang.java.programmer)
  • Re: Using subprocess module to launch a shell shell script that itself forks a process
    ... """Invokes a shell command, ... When running the aforementioned code, it kicks off the shell script, ... the shell script kicks off the Java process. ... you could just invoke java directly from Python. ...
    (comp.lang.python)
  • Re: for permanent services, is Java preferable to PHP?
    ... My impression is that no PHP script ... > I don't see any clear advantage to using Java over PHP in such a way, ... Still, if I were to write this service as a shell script, I'd have to ... tweak it for every server I use. ...
    (comp.lang.php)
  • Re: jsp->shell->java
    ... and has some kind of security problem. ... > shell script from my jsp program. ... of the environment variables, etc. ... might not be able to run Java at all. ...
    (comp.lang.java.programmer)
  • Re: Sending application to background
    ... > The application (Running on Unix or Linux) that we are trying to ... We need to prompt for password at the start of the java application. ... > The application is started via a shell script. ... > to background so that the user gets back the shell prompt after he ...
    (comp.lang.java.help)