run linux command within firefox
来源:互联网 发布:九阴绝学兽魂进阶数据 编辑:程序博客网 时间:2024/04/29 15:06
function startRDPOnLinux(vmip){
if(!isNotActivex()){
return false;
}
if(checkBrow()=="ie"){
alert("Linux平台下只支持Firefox浏览器!");
} else { //firefox
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("/usr/local/bin/rdesktop");
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
process.init(file);
var args = [vmip, "-f"];
process.run(false, args, args.length);
}
}
if(!isNotActivex()){
return false;
}
if(checkBrow()=="ie"){
alert("Linux平台下只支持Firefox浏览器!");
} else { //firefox
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("/usr/local/bin/rdesktop");
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
process.init(file);
var args = [vmip, "-f"];
process.run(false, args, args.length);
}
}
- run linux command within firefox
- linux-run command background
- Linux文件名中rc是什么意思?------Run Command
- Run command
- Run... Command
- Run command
- xterm run command
- Run a program from within a program
- shell special characters within shell command lines
- Run a Command as Administrator
- ruby run external batch command
- cakephp run shell command line
- Windows 7 Commands(Run Command)
- bash run command in line
- How can I run an EXE from within my application?
- how to run tempest in devstack within vmware workstation
- 【转】 SELECT INTO command not allowed within multi-statement transaction
- 理解 SET CHAINED command not allowed within multi-statement transaction
- C/C++二级指针越界判断
- 转载和积累系列 - Linux Yum 相关
- Internet Minimum MTU: 576 Bytes
- 康奈尔大学做笔记方法,让效率提高100%@
- hdu 1281 二分匹配
- run linux command within firefox
- Irrlicht引擎源码剖析——第二天
- 命令行快速进阶(六)Ubuntu中对压缩文件的操作和处理
- CSS Box模型
- 说明一下
- hdu 3790 最短路径问题
- 命令行快速进阶(七)通过byobu使用多个命令终端
- gdbserver远程调试的具体实现
- httpsession 详细内容整理 (备忘)