value of variable

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28
How to set up value for variable like constant , this mean when i next time run template to saved from last time? I try with global variables, set some value, but not have succes ?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
You can save data to file and take if from there.
As alternative.
 

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28
Yes, i do that, but if have multi thread this is pain, example, i need change number off varibale for every itteration, and have multi thread, i now, take line, then delete txt and create new txt with new value of variable. But, ih i have multithread, and one template delete file, and in this moment second template want use this txt to see varible, there is error. This is main solution for this?
 

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28
Example, i now have project to take one milion email adresses in excel, i have start numbers from 1- 1.000.000 Every line have one domain. I take number of line, and take domain, and number is variable. But, i need fast solution, i must know where is last entry for 100 thread .And i put last entry in txt , but 100 threads look in this file, and this is confuse.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Why you try to track number of lines? take them with removing and store used one in another file or put them at the end of current one.
 

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28
I track number to know what line/domain next template to take for scraping ,and what entry was entered. Example one template use line 123043 ( this is domain live.com) , and 123043 put in txt file, next template take this number and increase for 1 and put 123044 to txt .In excel table, every domain have unique number and i must in column B put email of this domain. I can try with this to store all and grabbing last number of file, but still many templates will take same line/number .
 

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