Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unsuccessful termination of Runtime.exitValue

 
SonalPSPL Bagmar
Greenhorn
Posts: 22
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic