命令(不錯,renice只能)我正在做一個Python程序爲新值分配給進程和動態監視他們:電話UNIX在Python
import os
import subprocess
#!/usr/bin/env python
print "hello world"
os.system("ps lx")
print "Enter PID"
pid = raw_input()
print "Entered PID",pid
print "Enter new priority"
new = raw_input()
print "Entered new priority is"new
os.system("sudo renice new pid")
我不知道該怎麼稱呼nice
和renice
與Python中的參數。
我們不做* 「緊急」 *,這不是一個服務支持;見http://meta.stackexchange.com/q/6506/248731 – jonrsharpe
@jonrsharpe:永遠不知道對不起。只是加急以獲得快速關注。 –