[NTLUG:Discuss] Scripting help

Rusty Haddock rusty at fe2o3.lonestar.org
Fri Sep 26 00:02:55 CDT 2014


I wasn't quite sure what you were asking for but here
is my shot.

If that list of hosts, one per line, can go into a file try this:

    for i in $(cat hostlist)
    do
       telnet $i
    done

I'm starting to be won over by the $( commands ) notation
instead of grave accents.

-- 
   _____                Rusty Haddock  <=>  AE5AE
|\/   o \   o             Way out yonder in the
|   (  -<  O o      Van Alstyne (TX) Metropolitan Area
|/\__V__/       Math illiteracy affects 7 out of 5 people!



More information about the Discuss mailing list