Search Results

Search: Posts Made By: kannansoft1985
1,833
Posted By Chubler_XL
You could use nc to test postgress is listening...
You could use nc to test postgress is listening on it's port:


if nc -w 3 -z 10.66.1.133 5432 < /dev/null > /dev/null 2>&1
then
echo "Postgress is running"
else
echo "Postgress NOT...
15
1,977
Posted By gandolf989
Try the following and post the results: ls...
Try the following and post the results:

ls -al /etc/mail
15
1,977
Posted By Don Cragun
Try (while running as root): chmod 755 /etc ...
Try (while running as root):
chmod 755 /etc
and then see if the problem persists.

If the problem isn't resolved by that change; show us the output from the command:
ls -ld / /etc /etc/mail
2,947
Posted By RudiC
Well, try this (untested!): #!/bin/bash ...
Well, try this (untested!):
#!/bin/bash
UplistFilePath="/root/Uplist.txt"
DownlistFilePath="/root/Downlist.txt"
rm -rf $UplistFilePath
rm -rf $DownlistFilePath

while IFS="\t" read $ip...
2,947
Posted By RudiC
Use cron to run that script every n minutes from...
Use cron to run that script every n minutes from 10:00h till 17:00h. If you replace the second while loop with a mail command there won't be any terminal output (which cron would send per mail...
2,947
Posted By RudiC
With a TAB delimited file IPfile.txt like...
With a TAB delimited file IPfile.txt like 10.66.1.133 TIRUNELVELI UNIT I 753
10.66.6.133 TIRUNELVELI UNIT II 74P
10.66.7.133 TIRUNELVELI CAB 74U
10.66.0.133 TENKASI 666...
15
1,977
Posted By Don Cragun
What is the output from: ls -l /etc/mail (the...
What is the output from:
ls -l /etc/mail
(the option is the letter ell; not the digit one) on your system.
2,543
Posted By Chubler_XL
I like MadeInGermany's idea of doing a host name...
I like MadeInGermany's idea of doing a host name lookup as this will involve less maintenance of your script, but it would involve ensuring all these machines are entered in the hosts file.

But if...
2,543
Posted By Chubler_XL
How about this: IPS="10.66.1.133 ...
How about this:

IPS="10.66.1.133 10.66.6.133 10.66.7.133 10.66.0.133
10.66.1.5 10.66.2.133 10.66.4.133 10.66.3.133
10.66.5.133 10.66.2.5 10.66.3.5 10.66.7.5
...
1,500
Posted By Chubler_XL
You could try something like this: ...
You could try something like this:

#!/bin/bash

upcnt=0
downcnt=0
for ip in 192.168.1.{3..19}
do
if ping -c 1 -W 1 $ip > /dev/null
then
let upcnt=upcnt+1
...
Showing results 1 to 10 of 10

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