Search Results

Search: Posts Made By: amarlinux
Forum: Red Hat 04-25-2012
22,393
Posted By amarlinux
in2nix4life, Script is running fine now. I do...
in2nix4life,
Script is running fine now. I do see a few problem.

1. Why am i not able to delete the monitor.log file
2. Though i set the ping for 5 sec but it is continuously running till now....
Forum: Red Hat 04-25-2012
22,393
Posted By amarlinux
Hi in2nix4life, When running your script i am...
Hi in2nix4life,
When running your script i am getting syntax errors.

awk: /packets/{if($4 ~ 0) print $0)
awk: ^ syntax error
awk: /packets/{if($4 ~ 0) print $0)...
Forum: Red Hat 04-20-2012
22,393
Posted By amarlinux
Thanks in2nix4life, i will try that. Thats a...
Thanks in2nix4life, i will try that. Thats a redhat linux machine.
2.6.18-308.1.1.el5, bash shell

Also thanks to rbatte1, but wondering why only ksh running it properly?
Forum: Red Hat 04-20-2012
22,393
Posted By amarlinux
Now its showing. Not sure why ? # ksh -x...
Now its showing. Not sure why ?

# ksh -x ping_out.sh
+ read in p t out rest
+ grep 'packets transmitted' /tmp/2012_04_20
+ [ 60 -ne 60 ]
+ echo 'All okay'
All okay

How to use code tags...
Forum: Red Hat 04-20-2012
22,393
Posted By amarlinux
Thanks. But why is it saying "We have a problem"...
Thanks. But why is it saying "We have a problem" , as there were no gaps or errors shouldnt it say "All okay". Also i didnt catch the logic of
[ $in -ne $out ]
Forum: Red Hat 04-20-2012
22,393
Posted By amarlinux
Thanks again. I am running it for 60 sec. But...
Thanks again.
I am running it for 60 sec. But facing a problem
# cat ping.sh
ping -c 60 serverip > /tmp/`date +%Y_%m_%d`
[root@test1 tmp]# cat ping_out.sh
grep "packets transmitted"...
Forum: Red Hat 04-20-2012
22,393
Posted By amarlinux
Thanks for the response! Can you please provide...
Thanks for the response!
Can you please provide the actual syntax.
Forum: Red Hat 04-20-2012
22,393
Posted By amarlinux
script for continous ping
Hi,
I want to run a script for continuous ping for a day then delete the previous day after checking if there is a gap in between with the other servers connectivity. Output the result in a /tmp...
Showing results 1 to 8 of 8

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