I don't know what a DNS thingy is
Maybe read the file into a while-loop like
Quote:
4. Question arises - what's the need for successful IPs..!?
What is a successful IP? If that is what I guess, you should get it from my former post where you test $?.
Quote:
1. I'm not good at googling.. :'(
Can't believe that
Quote:
3. As of now, the bit I'm struggling w/ is:
using 'grep' to fetch the IP from the same line where I'm grepping - "unreachable host"..
You don't need to grep it, as testing the return code of ping you know which IP you are currently processing and can just redirect it to your further to be processed list; see up there after the else.
I have two queries in regard to a Unix script.
1) From a Unix script, I want to read the IP of another remote HP-UX server and want to just check if that machine is reachable or the IP exists. I don't know the login Id and password of the remote machine. I could not properly manage with ping. How... (2 Replies)
Hi,
I am trying to write a shell script to delete logs generate by db when space in the folder reaches 70%. i am getting space values from db, find the files at OS and remove them by using a cron job runs every 5minutes.
I have to keep the latest 5 files at any time, my problem is that log files... (3 Replies)
I woul like to create a script in order to make a ping to a server and save in a variable a 1 if respond or a 0 if it doesnt. Then with that I could make a graffic of the server, for how long it is up.:b:
So far I have this:
if ;
then
#if the ip respond the ping shows online
echo... (3 Replies)
test.sh
--------------
#This script deletes the temporary files created on the server when the user opens the output files
#
FILE_PATH=$1
P_FILE_PATH=$2
FRQ=$3
#FRQ=`expr $FRQ*60*24 | bc`
#FRQ= 60
echo $FILE_PATH
echo $P_FILE_PATH
echo $FRQ
if
then
find $FILE_PATH -mmin... (7 Replies)
Hi friends,
i have a file contains IP address like below
cat file.txt
10.223.20.1
10.223.20.2
10.223.20.3
10.223.20.4
10.223.10.5
.
.
.
like this
Now i want to make a script which gives output whether each ip is pinging or not...
the result will be like this
10.223.20.1 up... (9 Replies)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Hi
I did the following script to ping multiple servers, but I keep on receiveing duplicate emails for one server that is down:
#!/bin/bash
date
cat /var/tmp/servers.list | while read output
do
ping -c 1 "$output" > /dev/null
if ; then
echo "node $output is up"
else
... (10 Replies)