怎么判断脚本还正在运行?
如果相同脚本还在运行则跳过例如:下行达到2m发出报警声音提示
tool traffic-monitor
# NAME INTERFACE TRAFFIC TRIGGER THRESHOLDON-EVENT
0aaa wan received above 2000000 music
0 name="lmusic" owner="root" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff
last-started=feb/04/2009 09:55:54 run-count=100
source=
:if (这个里怎么写?) do={
:log info "已有个music在运行"} else={
:beep length=1s frequency=350
:delay 560ms
:beep length=1s frequency=1000
:delay 560ms
:beep length=1s frequency=350
:delay 560ms
:beep length=1s frequency=1000
:delay 560ms
:beep length=1s frequency=350
:delay 560ms
:beep length=1s frequency=1000
:delay 560ms
}
页:
[1]