mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 17:54:41 +02:00
global-functions: $WaitForFile: use delay instead of iterations
This commit is contained in:
parent
b794d98cbb
commit
978c03131a
2 changed files with 7 additions and 6 deletions
|
@ -103,7 +103,7 @@ $WaitFullyConnected;
|
|||
$LogPrintExit2 info $0 ("Running command: " . $Text) false;
|
||||
:exec script=(":do {\n" . $Text . "\n} on-error={ :execute script=\":put\" file=" . $File . ".failed };" . \
|
||||
":execute script=\":put\" file=" . $File . ".done") file=$File;
|
||||
:if ([ $WaitForFile ($File . ".done.txt") 200 ] = false) do={
|
||||
:if ([ $WaitForFile ($File . ".done.txt") 20s ] = false) do={
|
||||
:set State "The command did not finish, still running in background.\n\n";
|
||||
}
|
||||
:if ([ :len [ /file/find where name=($File . ".failed.txt") ] ] > 0) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue