I have a task to treat data with an algorithm using bash something like that :
array.json {array1:[1,0,2];array2:[0,3,4]}
shell.exec('./algorithm "$(cat array.json)" 1.0')
Results
{array1:[1,1,2];array2:[1,3,4]}
I did that and I stored it in database for my second task is doing the same with hosting data, I stored data in variable called studiedArray I tired to do something like that but it doesn't work even when change cat with echo :
studiedArray {array1:[1,1,2];array2:[1,3,4]}
shell.exec(`./algorithm "$(cat ${studiedArray})" 1.0`)
I used shelljs