在每小时之前,将λscron表达为5分钟

时间:2017-11-08 15:06:49

标签: lambda cron

是否可以在每小时之前定义一个cron表达式来激活5分钟

每小时,我都可以使用

var macro =  "SET !DATASOURCE keywords.csv" + "\n";
macro +=  "SET !DATASOURCE_LINE {{RowNo}}" + "\n";
macro +=  "URL GOTO=https://www.google.com/ncr" + "\n";
macro +=  "TAG POS=1 TYPE=INPUT:TEXT FORM=ID:tsf ATTR=ID:lst-ib CONTENT={{!COL1}}" + "\n";
macro +=  "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:tsf ATTR=NAME:btnK" + "\n";

var NextButton =  "TAB T=1" + "\n";
NextButton +=  "WAIT SECONDS=1" + "\n";
NextButton +=  "TAG POS=1 TYPE=A ATTR=TXT:Next" + "\n";
NextButton +=  "WAIT SECONDS=0.5" + "\n";

for(var m=1; m<60; m++) {
    iimSet("RowNo",m)
    iimPlayCode(macro)

    do {
        var NextBtnCheck = iimPlayCode(NextButton);
        if (NextBtnCheck != 1)
            break;
    } while(true)
}

但我需要它才能在一小时前5分钟......

2 个答案:

答案 0 :(得分:0)

如果您在cloudwatch中创建规则,则会看到一个屏幕,您可以在其中输入表达式,它将为您评估该表达式:

enter image description here

答案 1 :(得分:-1)

cron(0 55/60 0/1?* * *) 试试那个