我正在运行此代码
#!/usr/bin/env python2.7
cmd = "mplayer -slave -input file=/home/user/mplayer-control duha.mp4 -loop 3000"
import subprocess
process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stdin=subprocess.PIPE)
output = process.communicate()[0]
然后在终端我想用echo "pause" > /home/user/mplayer-control
暂停mplayer
但是mplayer没有响应我的命令。我做错了什么?