#!/bin/sh
path_monitor=/opt/monitor_process.sh
path_process_list=/opt/process.list
cat $path_process_list | while read i
do
if [ x"$(ps -Af | grep "$i" | grep -v grep)" = x"" ] ; then
$i &
fi
done
时间: 2024-11-10 01:26:31