FIXED. Something to do with erls handling of stdin. -detached flag fixed it.