in reply to Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered

Let me be more specific. I need to write a Script that takes input from users for NIC bonds 2 to 8 (we do not have bond5), Netmask, gateway and DNS. Then it has to check all the IP's enetred for these entities and ask for a particular entity if IP is enetered wrong. After this it has to create specific bond files with respective entries of IP addresses taken from user. I am able to create if I ask from user and they enter wrong IP but repetatively asking a question for one entitiy and matching the IP address to be entered in file is the problem I am facing

  • Comment on Re: Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered

Replies are listed 'Best First'.
Re^2: Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered
by Loops (Curate) on Nov 28, 2014 at 09:41 UTC

    Hi there,

    vinoth.ree has given you a good answer for the problem you seem to be having. You want to:

      Ask question.
      Test answer.
      Repeat until answer is acceptable.

    What is your question relating to Perl?