在java中执行linux命令
答
看看Runtime.getRuntime().exec("contrab file.txt")
答
Runtime.getRuntime().exec("crontab file.txt")
答
linux命令本质上是程序。你可以简单地运行它们,使用Runtime.getRuntime().exec("crontab file.txt");