mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
telegram-chat: use the full command name :execute
This commit is contained in:
parent
5349c9b52e
commit
66ebcf2bbd
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ $WaitFullyConnected;
|
|||
:local File ("tmpfs/telegram-chat/" . [ $GetRandom20CharAlNum 6 ]);
|
||||
$MkDir "tmpfs/telegram-chat";
|
||||
$LogPrintExit2 info $0 ("Running command from update " . $UpdateID . ": " . $Text) false;
|
||||
:exec script=(":do {\n" . $Text . "\n} on-error={ :execute script=\"/\" file=" . $File . ".failed };" . \
|
||||
:execute script=(":do {\n" . $Text . "\n} on-error={ :execute script=\"/\" file=" . $File . ".failed };" . \
|
||||
":execute script=\"/\" file=" . $File . ".done") file=$File;
|
||||
:if ([ $WaitForFile ($File . ".done.txt") [ $EitherOr $TelegramChatRunTime 20s ] ] = false) do={
|
||||
:set State "The command did not finish, still running in background.\n\n";
|
||||
|
|
Loading…
Reference in a new issue