Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
I want to read an array (js variable) from bash

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

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda