• 文学城
  1. 文学城
  2. [computer]

how to run a linux command in java????2004-11-26 00:28:41

java????2004-11-26 00: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!
继续阅读
明年七大热门科技:刀片服务器+64位+Linux+Voip新浪科技   2004-11-25 21:25:185555,电脑启动不了,谁来救救我啊,555....六神无主MM   2004-11-25 20:52:29Hi, Guys, where I can find thewhy,   2004-11-25 20:43:05哪位好心人能提供几个能在国内上求PROXY   2004-11-25 19:29:38奇怪的现象,哪位朋友帮忙给解释一下UFO45   2004-11-25 19:01:57请问关于LinixLinix初学者   2004-11-25 17:28:38前天问WINDOWS 2003 RDC的进来啊嘎嘎感   2004-11-25 15:01:16brsvc01a.exe的错误,需手动终止这个程序才行wnst   2004-11-25 14:08:22bittorrent not workingbtnotworking   2004-11-25 07:17:35how 2 convert protect .wma ?HornyKoala   2004-11-25 06:48:12
同作者
how to run a linux command injava????   2004-11-26 00:28:41