Checker

ohcysp

Client
Регистрация
21.02.2012
Сообщения
28
Благодарностей
0
Баллы
1
I'm creating a template which goes trough a list of websites and check if they are using a particular platform. I want each website from the list to be removed after successful execution of the template, so on the first step I get string 0 and don't remove it. In the end of the template I get this row from the file again and delete it. It is working fine this way but if I use more than 1 thread string 0 won't work and it can remove wrong website. Can someone suggest a solution.

Is it possible to get random line from file and than delete this particular line in other step?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Why not delete it in the first branch where you are pulling the url from the file. You can use the execution result of that branch wherever and whenever you need it again. Remember that zenno holds the value of the branch until the template is executed successfully or fails. You could also put it into global storage as a randomly named variable and that way it will only be used by the template that pulled it.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)