Getting "-bash: fork: Resource temporarily unavailable" in OSX
Use ulimit -a
in a console to find out the limit. Here in Linux, it's max user processes
.
If this value is too low, raise it: http://hints.macworld.com/article.php?story=200311151254441
Check if your bash script isn't called itself recursively. Don't do that.