Switch from pipes to temporary file to store program output to get rid length limits.