File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Unsuccessful termination of Runtime.exitValue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Unsuccessful termination of Runtime.exitValue" Watch "Unsuccessful termination of Runtime.exitValue" New topic

Unsuccessful termination of Runtime.exitValue

SonalPSPL Bagmar

Joined: Jul 29, 2004
Posts: 22
Hi all,
the following cmd gives me an Exit status as '1' i.e. unsuccessful termination. any comments ?

Process cmd_su = Runtime.getRuntime().exec("su - imail -c 'cd lib;imservping'");

whereas this cmd works perfectly fine
Process cmd_su = Runtime.getRuntime().exec("su - imail -c 'id' ");

I agree. Here's the link:
subject: Unsuccessful termination of Runtime.exitValue
jQuery in Action, 3rd edition