#!/bin/sh signal=0 while [[ $signal != 1 ]] do DTTERM=`pgrep expdp` # 为expdp进程名 if [ -n "$DTTERM" ] then sleep 60 # 每次监测时间60秒 else signal=1 fi done