[ale] Command name

Geoffrey Myers lists at serioustechnology.com
Mon Oct 10 20:15:14 EDT 2011


Sounds to me that expect would have been the right tool.

Jim Kinney wrote:
> Wanting to use a script to install ssh keys to a bazillion machines. :-)
> Yes doesn't play well with ssh.
> Got it down to a script and ctl-v. Another 100 to go...
> 
> On Oct 10, 2011 4:48 PM, "Dennis Ruzeski" <denniruz at gmail.com 
> <mailto:denniruz at gmail.com>> wrote:
> 
>     Expect is what you want-- ssh won't take input from redirected stdin.
>      
>     Here's some things that won't work-
> 
>     $echo 'password' |ssh username at hostname
> 
>     Variations on a script-
>     #!/bin/bash
>     ssh username at host << EOF
>     password
>     EOF
> 
>     While expect will do this, a cleaner and more secure way to set this
>     up is with shared key authentication.
> 
>     --Dennis
> 
> 
> 
> 
> 
>     On Mon, Oct 10, 2011 at 4:29 PM, chip <chip.gwyn at gmail.com
>     <mailto:chip.gwyn at gmail.com>> wrote:
> 
>         Possibly 'yes' ?
> 
>         -> which yes
>         /usr/bin/yes
> 
>         NAME
>               yes - output a string repeatedly until killed
> 
>         SYNOPSIS
>               yes [STRING]...
>               yes OPTION
> 
>         DESCRIPTION
>               Repeatedly output a line with all specified STRING(s), or ‘y’
> 
>         On Mon, Oct 10, 2011 at 4:09 PM, Jim Kinney
>         <jim.kinney at gmail.com <mailto:jim.kinney at gmail.com>> wrote:
>          > Looking for a command name. Google is not my friend
>          >
>          > Usage: <command> 'string'
>          > It echos string to any avail stdin. Really useful to toss a
>         password into
>          > for a long series of logins.
>          > Scanning /usr/bin not helping.
>          >
>          > For I on $(seq 1 254) do
>          > <command> 'mypass' ssh me at host rpm -qa|grep foo
>          > Done
>          >
>          > _______________________________________________
>          > Ale mailing list
>          > Ale at ale.org <mailto:Ale at ale.org>
>          > http://mail.ale.org/mailman/listinfo/ale
>          > See JOBS, ANNOUNCE and SCHOOLS lists at
>          > http://mail.ale.org/mailman/listinfo
>          >
>          >
> 
> 
> 
>         --
>         Just my $.02, your mileage may vary,  batteries not included,
>         etc....
> 
>         _______________________________________________
>         Ale mailing list
>         Ale at ale.org <mailto:Ale at ale.org>
>         http://mail.ale.org/mailman/listinfo/ale
>         See JOBS, ANNOUNCE and SCHOOLS lists at
>         http://mail.ale.org/mailman/listinfo
> 
> 
> 
>     _______________________________________________
>     Ale mailing list
>     Ale at ale.org <mailto:Ale at ale.org>
>     http://mail.ale.org/mailman/listinfo/ale
>     See JOBS, ANNOUNCE and SCHOOLS lists at
>     http://mail.ale.org/mailman/listinfo
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson


More information about the Ale mailing list