begin quoting Gabriel Sechan as of Fri, Dec 01, 2006 at 02:50:45PM -0600: > I come to ask the oracles of Unix a question. I need a program that does > the following: > > 1)RUns a command (which generates a file) > 2)scp's the file to another computer > 3)ssh's into that computer and runs a few other commands > > I'm trying to do an end run around a firewall, in case you can't tell. > > I know ssh has oddnesses with stdin (you can't type the password too soon > or it drops characters). So it seems like an expect script may work. I've > never written one before, so to those who know the tool am I on the right > track? Any good (preferably free) sources of expect examples/documentation?
You might want to look at "autoexpect". It will generate an expect script for you. Otherise, http://expect.nist.gov/example has a lot of examples. I would think that "passmass" could provide some insight, as it logs in on many machines and changes the password. So it handles logging in and invoking interactive programs on the remote system. -- _ |\_ \| -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
