Hacker News new | past | comments | ask | show | jobs | submit login

You can use xargs for parallel remote execution too. In the simplest case:

    list-hosts |
    xargs \
    -P8 \
    -n1 \
    -I% \
    ssh % some-command



Sure, and you can also run an ssh command inside backticks too. There's something of a Turing tar pit here.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: