search

Home  >  Q&A  >  body text

bash - OS X :shell打开多个终端,运行不同的python文件

运行./run.sh

它会打开三个终端分别运行a.py,b.py,c.py

os x 和 ubuntu 分别怎么写?

大家讲道理大家讲道理2892 days ago373

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 09:14:54

    I don’t quite understand your needs. Do you have to open three “visual terminal interfaces”?
    If you just want three files to be executed at the same time, then write three lines
    python a.py &
    python b.py &
    python c.py &
    & to indicate that this command is executed in the background, that is, divided into three processes Execute

    reply
    0
  • Cancelreply