Page 1 of 1
executeShellCommand() And command option
Posted: Tuesday 06 April 2021 21:47
by acaonweb
Hi guys,
I’m trying to send an executeShellCommand() repeating it.
I’ve tried something like
Code: Select all
dz.executeShellCommand(‘my command’).repeatAfterSec(1, 3)
but I get an error.
How resolve?
Thanx in advance.
Fabrizio
Re: executeShellCommand() And command option
Posted: Tuesday 06 April 2021 22:29
by waaren
acaonweb wrote: ↑Tuesday 06 April 2021 21:47
I’m trying to send an executeShellCommand() repeating it.
How resolve?
Option repeatAfterSec is not available for executeShellCommand.
You could use
Code: Select all
for delay = 0, 2 do
dz.executeShellCommand(‘my command’).afterSec(delay)
end
Re: executeShellCommand() And command option [Solved]
Posted: Wednesday 07 April 2021 12:31
by acaonweb
thanx so much
with this code delay is 0,1,2 so three times every 1 second.
Great

Re: executeShellCommand() And command option
Posted: Wednesday 07 April 2021 16:21
by acaonweb
and what if i'd like do 4 times every 3 seconds?
Code: Select all
for delay = 0, 9, 3 do
dz.executeShellCommand(‘my command’).afterSec(delay)
end
It's like that?
Re: executeShellCommand() And command option
Posted: Wednesday 07 April 2021 17:32
by waaren
acaonweb wrote: ↑Wednesday 07 April 2021 16:21
and what if i'd like do 4 times every 3 seconds?
Code: Select all
for delay = 0, 9, 3 do
dz.executeShellCommand(‘my command’).afterSec(delay)
end
Yes, that will do the executeShellCommand after 0,3,6 and 9 seconds
Re: executeShellCommand() And command option
Posted: Thursday 08 April 2021 11:18
by acaonweb
thanx
