Hmm, first post nowhere to be found. Wondering if there is a review period?
Newbie here just got my microtik and have very basic knowledge.
Questions are conceptual vice specific details of setups.
Basically, is it better, more efficient to combine scripts or keep them separate from each other.
Background: Downloading three separate files (from same site) to combat malware etc.......
Method: Three parts:
1-Download scripts one per file (3 scripts). Each with its own schedule.
2-Transfer scripts, one per file - basically transferring them from the File Directory to the IP address list location (3 scripts). Each with its own schedule.
3-One Remove script - basically deletes all files (somewhat more efficient in approach). Also has its own schedule.
The Schedule, in practical terms looks like below with the downloads 5min apart, the transfers 1min apart, and the delete approx 5 min after the last transfer.
Download - transfer
Download - transfer
Download - transfer
Delete
By the way my first attempt following a Google search was to state /remove file [find] as the article suggested stating [find] would remove all files in the directory.
After this rule had no impact I went to /remove file [find where size>1]. That seemed to work great.
Discussion: Is it feasible to combine the above scripts and by that I mean physically possible and secondly will it save memory? Certainly it would seem like a good idea to combine at least the download and the transfer for each file type into one script and one schedule. This approach would realize 8 entities (4 scripts and 4 schedules, including the delete functionality) vice the current 14 entities (7 scripts and 7 schedules).
Even if its physically possible to combine the scripts will it it be impractical in the sense that the router may end up transferring an incomplete file or the transfer function may interrupt the download. If this is the case, is it possible to inject delays on functions or commands within scripts, such that one could avoid collisions in functionality that may interfere with processes??
Cheers
anav