File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unsuccessful termination of Runtime.exitValue

 
SonalPSPL Bagmar
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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' ");


Regards
SONAL
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic