File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Java in General
Unsuccessful termination of Runtime.exitValue
Joined: Jul 29, 2004
Oct 07, 2004 00:23:00
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
How Direct Runtime.getRuntime().exec output to Console window ??
running unix 'su 'cmd from java
Pass Data to outputstream
Running Unix commands thru Java
Showing output from Runtime.getRuntime().exec
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015