[NTLUG:Discuss] Scripting help
Leroy Tennison
leroy.tennison at verizon.net
Fri Oct 10 23:06:59 CDT 2014
Well, interesting result, it obviously did telnet to the devices (got
Trying .., Connected to..., Escape character is ..) but then
"Connection closed by foreign host." before ever showing me the login
screen (three times, once for each device in my list). BTW, I'm
discovering that things which work on bash in SuSE 12.2 (bash 4.2.45(1))
don't work on RHEL 5 (bash 3.2.25(1)).
On 10/09/2014 09:13 PM, Christopher Cox wrote:
> On 09/24/2014 10:24 PM, Leroy Tennison wrote:
>> I'm trying to get telnet to repetitively connect to a newline-delimited list of
>> devices. In other words, if I have device1, device2 and device3 then what I
>> want is:
>>
>> telnet device1
>> telnet device2
>> telnet device3
>>
> xargs -n1 telnet <<HERE
> device1
> device2
> device3
> ...
> deviceN
> HERE
>
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list