Search Results

Search: Posts Made By: madhudeva
8,541
Posted By itkamaraj
outputfile=$(date +%Y%m%d_%H%M%S.log) and...
outputfile=$(date +%Y%m%d_%H%M%S.log)

and change the below line

ping $i >> $outputfile
8,541
Posted By elixir_sinari
Like this? #! /bin/bash for i in `cat...
Like this?

#! /bin/bash
for i in `cat serverlist`
do
ping $i
done > output.txt_$(date +%d%m%Y%H%M%S)
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy