First of all: never let parallel wget instances work on the same directory.
Regarding your question, wget1: No, wget2: Yes. To get this working with wget1, I suggest the following steps 1. --load-cookies=cookie.txt 2. --save-cookies=<unique cookie file for each wget process> 3. use a bash script to merge the unique cookie files into one cookies.txt (e.g. something like 'cat file1 file2 ...|sort -u >cookies.txt'). Regards, Tim On 16.02.20 14:14, Peng Yu wrote: > Hi, > > I'd like to use multiple wget processes with the same cookie file. But > I am afraid multiple write to the same cookie file may end up > corrupting it. Is the corruption of the cookie file possible? If so, > is there a way to allow multiple wget processes updating the cookie > file safely? Thanks. >
signature.asc
Description: OpenPGP digital signature