Home > OS >  Centos7 next batch run and stop py program
Centos7 next batch run and stop py program

Time:09-22

Centos7, in the directory/var/FTP/pub abc111111. Py, abc222222. Py, abc333333. Py three procedures, now want to batch operation and batch to stop them,
And each procedure need to be performed on a screen (because abcxxxxxx. There is an infinite loop in py, will continue to run),

A single execution, the following steps:
Screen -r abc111111 (already in the first screen -s abcxxxxxx established their respective screen)
CD/var/FTP/pub
Python/var/FTP/pub/abc111111 py & gt;> The/var/FTP/pub/abc111111. Log 2 & gt; & 1
CTRL + a + d

Screen -r abc222222
CD/var/FTP/pub
Python/var/FTP/pub/abc222222 py & gt;> The/var/FTP/pub/abc222222. Log 2 & gt; & 1
CTRL + a + d

Screen -r abc333333
CD/var/FTP/pub
Python/var/FTP/pub/abc333333 py & gt;> The/var/FTP/pub/abc333333. Log 2 & gt; & 1
But one by one to get too much trouble,

How to batch run and stop them?
  • Related