On Fri, December 1, 2006 12:50 pm, Gabriel Sechan wrote: > 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? > > Gabe
You've got the right tool. Now you need the right book. http://www.oreilly.com/catalog/expect/ -- Lan Barnes Tcl/Tk Enthusiast SCM Analyst Linux Guy Biodiesel Brewer -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
