Bash Send Output To Array Javascript Append Function In C