Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Networking 在以root用户身份执行python脚本后,如何在mininet中打开xterm?_Networking_Xterm_Mininet_Sdn - Fatal编程技术网

Networking 在以root用户身份执行python脚本后,如何在mininet中打开xterm?

Networking 在以root用户身份执行python脚本后,如何在mininet中打开xterm?,networking,xterm,mininet,sdn,Networking,Xterm,Mininet,Sdn,我正在运行一个python脚本,当我像普通用户mininet所说的那样执行它时 must run as root 当我以root用户的身份执行它时,它工作得很好,但是在脚本之后,我必须打开xtermh1,如果您是root用户,它就不允许 如何以root用户身份打开xterm?尝试以下操作: sudo -E python <name of the custom topo file> 这将允许您以脚本的形式运行自定义拓扑脚本。那么您应该能够使用xtrem

我正在运行一个python脚本,当我像普通用户mininet所说的那样执行它时

must run as root
当我以root用户的身份执行它时,它工作得很好,但是在脚本之后,我必须打开xtermh1,如果您是root用户,它就不允许

如何以root用户身份打开xterm?

尝试以下操作:

sudo -E python <name of the custom topo file>
这将允许您以脚本的形式运行自定义拓扑脚本。那么您应该能够使用xtrem