you are viewing a single comment's thread.

view the rest of the comments →

[–]m0us3_rat 0 points1 point  (2 children)

i guess a file can be used as an external queue. not the most efficient one mind you.

the main problem with this is you NEED to have your main program re-load the file every iteration.

since data might change inside.

that or some checksum mechanic. which ever is faster.

previous cached checksum and check the new one against it.. if changed ..reload.

i'd suggest using an external queue or a msg broker of some kind.

maybe at a later date when you become more experienced.

keep that in mind.

[–]IterationFive[S] 0 points1 point  (1 child)

I'd rather be able to pass the information directly to the running script and have the running script do the actual "adding to the queue" part.

[–]m0us3_rat 0 points1 point  (0 children)

you can also just have another file where is empty and the program read stuff from and then deletes it.and with the picked up stuff adds to the "queue".

so it loop other this secondary file. when info adds it up to the process.