Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I would like to execute a command:

curl example.com

multiple times in parallel using GNU parallel. I tried:

parallel -j 3 curl example.com

but it doesn't work.

share|improve this question
    
That's it. Thank you @don_crissti :) Can you add your comment as an answer so that I can accept it? –  Aalex Gabi Oct 16 '14 at 11:52
    
"Using parallel to run script without input" wasn't was I was searching for. But thanks. –  Aalex Gabi Oct 17 '14 at 12:37

1 Answer 1

As @don_crissti points out:

seq 3 | parallel -n0 curl example.com
share|improve this answer
    
What is this -n0? Is there a -n1? –  CMCDragonkai Jun 1 at 16:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.