Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

319
Views
apache en raspberry pi llamando a un script bash usando system () no escribirá un archivo

así que tengo un programa cgi en C que llama a estas líneas:

 system("./temp.cgi >temp.lis"); system("ls >dir.lis"); system("echo \"hello there you \" > ht.lis"); system("ps -A >ps.lis");

las cuatro líneas se ejecutan y crean los archivos .lis correspondientes, pero temp.lis está vacío, tiene 0 bytes de longitud. aquí está el código para temp.cgi:

 #!/bin/bash /opt/vc/bin/vcgencmd measure_temp >temp2.lis exit

el archivo generado temp2.lis también se genera, pero también tiene una longitud de 0 bytes.

¿Cómo puedo hacer que temp.cgi se ejecute y genere un archivo de salida?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!