sshall again
Posted Thu, 23 Oct 2003
So
and actually get a login prompt. If I used xapply (as previously) it would complain about not being able to grab stdin (or a tty) because we were doing:
This would give the error message (for each host):
xapply -f doesn't cut it for when I want interactive ssh sessions, so I updated my sshall script to use the apply syntax instead of xargs - this lets me do
sshall
and actually get a login prompt. If I used xapply (as previously) it would complain about not being able to grab stdin (or a tty) because we were doing:
cat hostlist | xapply -f 'ssh ...'
This would give the error message (for each host):
project1 - Pseudo-terminal will not be allocated because stdin is not a terminal.The solution to this problem is varied. You'll probably need the -t option for ssh: ssh -t user@server will allocate a terminal for you on the remote server so console-based applications will work.