How can I create a script using the following command?
mmap -sn -n x.x.x.x/8
, /16
, /24
and so on. I would like the script to run the command when I type in "sweep" and then prompt me for the subnet that I would like it to look on.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityHow can I create a script using the following command?
mmap -sn -n x.x.x.x/8
, /16
, /24
and so on. I would like the script to run the command when I type in "sweep" and then prompt me for the subnet that I would like it to look on.
In your script you can put :
echo "Input subnet"
read subnet
to get user input and store it in a variable called subnet.
Obviously there is no check to see if you entered a valid subnet.