SUMMARY: Low level (?) error "Error int getting (TCGETA) tty params" executing scripts remotely with SSH and sudo

From: Ragnar Moller \(MA/EAF\) (ragnar.moller@ericsson.com)
Date: Tue Oct 31 2006 - 12:28:24 EST


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

> _____________________________________________
> From: Ragnar Moller (MA/EAF)
> Sent: mardi 31 octobre 2006 17:04
> To: sunmanagers@sunmanagers.org
> Subject: Low level (?) error "Error int getting (TCGETA) tty params"
executing scripts remotely with SSH and sudo
>
>
> We are using ssh to start scripts remotely on a bunch of servers. Commands
cans be things like
>
> 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
machine, does not work with ssh and produces the following output (first the
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@ericsson.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:07 EDT