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

158
Vistas
llamar a mysql en perl rompe la opción --tee?

Estoy compilando comandos mysql en un script perl y quiero usar la opción -tee para obtener un archivo que muestre lo que sucedió.

Entonces, aquí abajo, estoy haciendo el mismo comando. En el primero, está dentro de un script en perl. En el segundo, está en la línea de comandos. En ambos casos, se crea el archivo tee, pero cuando lo llamo a través de perl, está vacío. ¿Que demonios? :--)

 % % cat test1.pl #!/usr/bin/perl open M, "| mysql --tee=x1.txt ca_sos_20200615"; print M "select count(8) from filer_filings;\n"; close M; % ./test1.pl Logging to file 'x1.txt' count(8) 2273504 % % mysql --tee=x2.txt ca_sos_20200615 Logging to file 'x2.txt' Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 353 Server version: 8.0.19 MySQL Community Server - GPL Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select count(8) from filer_filings; +----------+ | count(8) | +----------+ | 2273504 | +----------+ 1 row in set (0.18 sec) mysql> quit Bye % % ls -l x1.txt x2.txt -rw-r--r-- 1 ray staff 0 Jul 4 14:24 x1.txt -rw-r--r-- 1 ray staff 714 Jul 4 14:24 x2.txt %
over 4 years ago · Santiago Trujillo
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