Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If I find myself running a set of commands in parallel, I'd keep a cheap Makefile around: individual commands I want to run in parallel will be written as phony targets:

  all: cmd1 cmd2
  
  cmd1:
      sleep 5
  
  cmd2:
      sleep 10

And then

  make -j[n]


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

Search: