SUMMARY: Low level (?) error "Error int getting (TCGETA) tty params" executing scripts remotely with SSH and sudo
- From: "Ragnar Moller \(MA/EAF\)" <ragnar.moller@xxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 18:28:24 +0100
As usual we quickly got quick and interesting proposals.
Two were axed around assumptions about terminal types and proposed the ssh
switches -n and -t.
I was able to test -n which didn't work just trying (didn't read the man on
ssh)
ssh -n mmsgui@mpm sudo /opt/MPMServer/bin/MPMGuiIhm -c status
I also got some proposals to insert " and \" but I wasn't successful before
the solution (below) came.
Didn't have time to try everything before our programmers modified the source
program MPMGuiIhm.
Apparently there was a call to ioctl.h to get terminal parameters in that
program. When the call was removed it worked.
Unfortunately my summary could be a more complete regarding the switches, but
unfortunately I don't have more elements.
Ragnar
_____________________________________________executing scripts remotely with SSH and sudo
From: Ragnar Moller (MA/EAF)
Sent: mardi 31 octobre 2006 17:04
To: sunmanagers@xxxxxxxxxxxxxxx
Subject: Low level (?) error "Error int getting (TCGETA) tty params"
cans be things like
We are using ssh to start scripts remotely on a bunch of servers. Commands
machine, does not work with ssh and produces the following output (first the
ssh mpm ls -ld
Or
ssh mmsgui@mpm sudo /etc/init.d/serverControl.sh status
The examples above work perfectly and result in the desired output.
On the other hand, the following command, which works perfectly on the local
command).
_______________________________________________
ssh mmsgui@mpm sudo /opt/MPMServer/bin/MPMGuiIhm -c status
Error int getting (TCGETA) tty params: Invalid argument
status
MPMServer IHM module: version 3.0
Starting up...
openning logfile...done
MPMihm Exiting...
Cordialement,
Ragnar Moller
Til: + 33 1 69 93 75 73 / ECN 879 5206
Mobile: + 33 6 50 86 47 24
Fax: + 33 1 69 93 70 10
Sicr: + 33 1 69 93 76 01
Email: ragnar.moller@xxxxxxxxxxxx
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: Re: xntpd slewalways & daylight change
- Next by Date: ILOM IP address lost on X4100
- Previous by thread: SUMMARY: passw awk variable to shell script
- Next by thread: ILOM IP address lost on X4100
- Index(es):
Relevant Pages
|
|