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!
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!
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2026 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy