This is code that I already have when i run the script ./testping.sh 220
than i gave this out put
NO, it does not! That code doesn't look at any command line arguments and always prints ping results for IP addresses 192.168.0.0 through 192.168.0.254.
Quote:
Originally Posted by Roggy
Now I want to limit the output to two lines but it doesn't work
Huh?
What two lines of output do you want to get from asking for the status of IPE address 192.168.0.220?
Quote:
Originally Posted by Roggy
I want to also implement 2 arguments to this script
the argument xx-yy en -t
xx-yy a range of IP address when I give the parameter ./testping.sh 67-80 it scans the range between this IP addresses
-t counts the IP address with 200 for example, when I run the script with the parameter -t, ./testping.sh -t 17, then I want as output 192.168.0.217
Why do you keeping asking the same question? Doesn't the code I provided in post #5 in your previous thread do exactly this?
I have no idea wich one. Ive always been a huge windows fan and well latly i've heard of Unix and Linux. Also, my friend wants to get Linux on his notebook and windows on his pc, the notebook being the master.(I think my friend is rather stupid wanting the notebook to be the master, but i've been... (3 Replies)
I am in the process of reading up on and
learning about linux,and as i read, i am
seeing that it was built off of the unix
system platform,and i also believe that it
is used in the mac computer field,i would
like to know if this is true, and if i should
learn about the macintosh computer... (2 Replies)
I need a shell script for OS X, one that can find IP addresses of machines connected to my LAN, get the names of the computer associated with those addresses, then display them like so in a list: "Bob's L33T Boxx: #.#.#.#" Something like the network scanner in Apple Remote Desktop is what I'm... (1 Reply)
I have never used any unix based operating systems and I am interested in trying. Wich would you prefer for me to use?
Also I am looking to learn unix code not to use for anything else. (3 Replies)
I use fopen, fscanf, fclose to read a file. It can work well. since many files should be read, a function is created with the same code. But in the function, fscanf can not work well.
for example, the first line of the the file is: > filename
but the fscanf will give: 207/23/eee/34
it appears... (2 Replies)
Hello,
I'm looking books and information for CSA certificate but in HP website, appears the right exam is HP0-091 but I found a book in amazon about HP0-A01 (includes 11.31?)exam, I think this is the last exam but it's extrange the HP website are obsolete.
Anyone known wich is the right exam... (4 Replies)
Hello all.
I have built a cluster of 9 Macs for computational chemistry and I need a shell script that I can use from one computer to all the rest to shutdown.
I have modified all of the Macs so that there is pass-wordless ssh. As well, I have modified each "visudo" file on each machine by... (1 Reply)
How do I network a Suse installed machine with other computers, specifically Red hat Linux?
This is for a school project, and I can't find any pages that tell how to network a Suse to other computers except how to use a printer. (1 Reply)
Hi All, I am pretty new to unix type languages. At work we have a server room with about 50 windows computers in one system and 50 in a unix system. We sometimes have power outages and I don't like the power slam. I wrote a windows batch file using sysinternals help to shutdown the windows... (4 Replies)