Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    I was going to comment by suggesting GNU Parallel, but you seem to have already tagged that. Did you try to do it with Parallel, or look at the other Q&A's there about it? (I didn't look the concrete issue too closely, just thought about the choice of tool.) Commented May 27, 2022 at 12:48
  • @ilkkachu Yes, I did try it: parallel -j0 'for a in "${myIPs[@]}"; do echo "${a} ${t} -p 80" >>log 2>&1; echo "${a} ${t} -p 443" >>log 2>&1;done' ::: "for t in ${TARGETS[@]}" but it does not work. I don't understand parallel very well. Commented May 27, 2022 at 18:00