input files into bash script??



Hi folks I wonder if you could help me out here.

What I'm trying to do is to write a bash script that will read two
input list files and issues commands using lines from both of them.
However I only want the second file to get to the next line once the
first file has got to the bottom and the start again.

For example..

File A is ( for example)

12345
23456
34567
45678
56789

File B is ( for example)

Server1
Server2
Server3
Server4

So the lines in file A would be run on server 1 first. Then all lines
in A on server 2 etc.

I know that it may be possible to do with Input file A and then define
servers 1,2,3,4 as symbols or something but that means I would need to
repeat the command 4 times in the script. I would rather not have to
do that as in the real world there are a lot more then just 4 servers.
I reckon once I know how to deal with the two files I can work the
rest out myself.

Any ideas? I have looked around the web but can only see people
talking about just one input file and not or more.
.



Relevant Pages

  • Re: input files into bash script??
    ... What I'm trying to do is to write a bash script that will read two ... input list files and issues commands using lines from both of them. ... So the lines in file A would be run on server 1 first. ... echo "do $cmd on $srv" ...
    (comp.unix.shell)
  • RE: RPc server is unavailable since SP1
    ... After these commands run successfully, ... RPc server is unavailable since SP1 ... >> when the member server update certificate you get the error message RPC ... >> interface security settings before the installation of SP1 will be lost. ...
    (microsoft.public.windows.server.sbs)
  • Re: z/OSs basis for TCP/IP
    ... direction in the IP component of z/OS Communications Server is to get rid ... The Pascal socket interface uses the IUCV/VMCF services for a limited set ... TSO HOMETEST, LPQ, LPR, LPRM, LPRSET, TELNET, and TESTSITE commands ... - that the generically named TCPIP.DATA data set HOSTNAME ...
    (bit.listserv.ibm-main)
  • Re: z/OSs basis for TCP/IP
    ... Do TSO HELP SEND for syntax and usage. ... z/OS Systems Support ... "replaced" by the CSSMTP server. ... TSO HOMETEST, LPQ, LPR, LPRM, LPRSET, TELNET, and TESTSITE commands ...
    (bit.listserv.ibm-main)
  • [NT] NetWin DMail Authentication Bypass (dlist.exe) and Format String (dsmtp.exe)
    ... either be used as a small personal mail server or as a 10 Million user ISP ... password hash) when sending the administrative commands. ... the DList server using a numeric hash of the administrative password. ...
    (Securiteam)