Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

409
Visualizações
stty: standard input: Invalid argument when using pdsh or ssh

I want to run a simple script from remote machine. The script contains the following:

#!/usr/bin/python

import os
print str(os.popen('stty size', 'r').read())

If I run it from local machine I get fine output, something like 36 138. If I try to run it from another machine, I get <ip>: stty: standard input: Invalid argument (using ssh ot pdsh).

The problem is I can't change the script that is using the stty command. This is a common script, which I write wrapper to. Suggestions ?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

As BroSlow said, ssh -t will solve the problem if using ssh.

If using pdsh via ssh, I used the following:

export PDSH_SSH_ARGS_APPEND="-tt -q"
pdsh -w ${machine_list} -S -R ssh ${cmd}

PDSH_SSH_ARGS_APPEND is used to append arguments to the ssh command generated by the pdsh, as the name hints.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda