how to run a linux command in

来源: 2004-11-25 16:28:41 [旧帖] [给我悄悄话] 本文已被阅读:

I want to execute a linux command say "/bin/ls" in my java file. The code I am using is Runtime.getRuntime().exec("/bin/ls"); when I run this on linux, nothing is output to the screen. no error message either. anybody can tell me why. Thanks a lot!