Running a secondary script in a new terminal

前端 未结 3 1191
暖寄归人
暖寄归人 2021-01-23 03:54

When running a secondary python script:

  • Is it possible to run a subprocess.Popen, or subprocess.call or even execfile in a n
3条回答
  •  梦谈多话
    2021-01-23 04:32

    You can specify the tty of the terminal window you wish the command to be carried out in:

    ls > /dev/ttys004
    

    However, I would recommend going for the tmux approach for greater control (see my other answer).

提交回复
热议问题