Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-01-2009, 06:04 AM   #1
LQ Newbie
Registered: May 2007
Posts: 23

Rep: Reputation: 0
I am in need of a shell script

Hello All
I want to ping several ips from a linux machine, put this ping results to .xls file in hhmmddmmyy format. Again If if the packet loss is greater than 20%, script will send a mail to administrator, to an ftp server. Script will read ip lists from a file. I am new at linux . Please help me asap.
Old 02-01-2009, 06:24 AM   #2
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
It`s not 100% what you are looking for, but it`s a start!

echo "Rechner mit der IP: " $name " wird ueberwacht!"

touch ./pingtest-dir/$1

echo "Rechner mit der IP: " $1 "wird überprüft!" >> ./pingtest-dir/$name
echo "========================================="  >> ./pingtest-dir/$name


while [ $i -eq 1 ]
	datum=`date +%Y-%b-%d-%H-%M-Uhr`
	echo $datum  >> ./pingtest-dir/$name
	/bin/ping -c 1 $1 | /usr/bin/tail -1  >> ./localtools/pingtest-dir/$name
	sleep 600


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to ssh from a shell script ? For ppl who can write shell scripts. thefountainhead100 Programming 14 10-22-2008 06:24 AM
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration