paip.执行shell cmd 命令uapi java php python总结
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
D:\wamp\php\php.exe E:\DedeCMS-V5.7-UTF8-SP1-Full\uploads\del_some_dir.php E:\OfflineExplorerPortable\Download budejie,xiaohua
-----uapi exec
-----php
$dir= $argv[1];
$delete= $argv[2];
$delete_arr=explode(",",$delete);
$cmd="dir ".$dir." /a:d /b";
exec($cmd ,$arr);
foreach($arr as $v)
----------python
os.system(compactMDBpath)
-------java
//执行Shell命令
pid = Runtime.getRuntime().exec(cmd);
参考
paip.python 执行shell 带空格命令行attilax总结 - Python开发技术文章
java 调用shell命令 - java技术交流 - ITeye技术网站.htm