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

406
Views
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 answers
Answer question

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 Report
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!