hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Linux Batch Question
OleaSTeR
how transform this windows script in linux batch ???

FOR %%d in (
192.168.0.1
192.168.0.2
192.168.0.3
) do ping %%d
GSecur
This belongs in the beginners section.
myth
Your looking at bash scripting for this:


CODE
#!/bin/bash
ipstart=1  # start IP
ipstop=254  # stop IP
while [ $ipstart -le $ipstop ]
do
       ping -q -c 1 192.168.13.$ipstart
       ipstart=$((ipstart+1))
done


Sorry, but couldnt figure out how to reduce the amount of information....

Btw, i used google to figure all that out - thought it maybe something nice to know... Not sure why you didnt try....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.