From: Austin S. <te...@of...> - 2006-04-13 16:37:04
|
On Thu, Apr 13, 2006 at 04:59:38PM +0200, Christoph Schwaiger wrote: > Hello, > > after looking some time into documentation about terminals and ttys, I'm > still not any further. I guess I need help. > > In my setup I use expect to spawn shells (rsh to AIX), (ssh to Linux), to > a lot of remote shells in parallel. So far so good, there is no problem > with that. Only, when talking to something like 30 boxes, the connection > closure takes a while, but OK, that's all. > You could use scp/rcp to copy the files, then diff them. If you have a bastion you can do ssh hostone 'scp hosttwo file .'; scp 'hostone file .', or something of that nature. ssh/rsh/scp/rcp can be setup to allow automatic login. > The thingy described before (called shiva) is called by another one called > (egalite) to retrieve output from many hosts and compare the gathered > files. My problem is when comparing files coming from AIX (5.2) boxes to > files coming from Linux (suse 9.? on Itanium), that the diff doesn't match > because TAB (x09) is translated on AIX boxes, but not on Linux. A hack > would be to give diff the option to ignore whitespaces, but this will > cause problems on another side, hence don't like it really. There is probably a setting to tell the aix tty not to do that. `man stty` on the aix host. alternatively you could translate the file using something like uuencode, then decode on the local box and feed to diff. > As I assume to talk to remote boxes of different types has probably done > by somebody... (but if somebody has compared the output already?)... I > hope that somebody has found a solution to this one already. That would be > great! > > Otherwise, I guess a cat need to postprocess the output rather. That will > do the trick too.. > > Thanks in advance. > > Christoph Schwaiger. > > PS: If somebody knows a good documentation covering the whole data path > from the perl expect through the pseudo tty, to the process, to the > remshell and so on...feel free to make me aware of it! Unix ptys are fairly widely documented, but I'm sure we could do with a summary in the docs. Austin |