#!/bin/sh 
#chkconfig: 2345 80 90 
#description:*****

# 开启一个sh脚本的运行窗口
screen_name1="bash_service"
screen -dmS $screen_name1
cmd2="bash /home/service.sh";
screen -x -S $screen_name1 -p 0 -X stuff "$cmd2"
screen -x -S $screen_name1 -p 0 -X stuff '\n'

# 开启一个 c1 跑一个python脚本
screen_name="c1"
screen -dmS $screen_name
cmd0="cd /root/auto_run_pro/src/repair";
cmd1="python3 /root/auto_run_pro/entrance/cron_receive.py";
screen -x -S $screen_name -p 0 -X stuff "$cmd0"
screen -x -S $screen_name -p 0 -X stuff '\n'
screen -x -S $screen_name -p 0 -X stuff "$cmd1"
screen -x -S $screen_name -p 0 -X stuff '\n'

# 开启一个 c2 跑一个python脚本
screen_name2="c2"
screen -dmS $screen_name2
screen -x -S $screen_name2 -p 0 -X stuff "$cmd0"
screen -x -S $screen_name2 -p 0 -X stuff '\n'
screen -x -S $screen_name2 -p 0 -X stuff "$cmd1"
screen -x -S $screen_name2 -p 0 -X stuff '\n'


# 依此类推...
Last modification:December 21, 2022
V50%看看实力