Results 1 to 2 of 2

Thread: [Req Help] How do i ask questions in a bash script?

  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    54

    Default [Req Help] How do i ask questions in a bash script?

    Hi

    i am trying to make a simple autmation script for ssl strip.

    I just want my script to ask the user questions like... what is the gateway ip? and then put that into the code its about exercute

    if someone could help me with this by giving me an example and exsplination i would be grateful

    thanks

    devine

  2. #2
    Very good friend of the forum TAPE's Avatar
    Join Date
    Jan 2010
    Location
    Europe
    Posts
    599

    Default Re: [Req Help] How do i ask questions in a bash script?

    I would suggest you have a look at the many scripts already
    created by forum members and read up on bash programming
    to see how this is being achieved.

    As a basic method to get user input and use that variable,
    you could look at the below.


    Code:
    echo -ne "Enter gateway IP: " 
    read gwip
    echo "Your chosen gateway IP is: $gwip"

Similar Threads

  1. Bash Script for Scapy
    By clapika in forum BackTrack 5 General Topics
    Replies: 1
    Last Post: 01-20-2012, 10:01 AM
  2. Replies: 6
    Last Post: 10-08-2010, 11:40 PM
  3. Replies: 10
    Last Post: 07-12-2010, 03:04 PM
  4. writing bash script help?
    By imported_dragracekid in forum OLD Newbie Area
    Replies: 10
    Last Post: 02-03-2009, 08:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •