Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xhost:migration-web [2020/02/16 21:37]
admin
xhost:migration-web [2020/02/17 08:31] (current)
admin
Line 2: Line 2:
 A good start is to go through apache2 config: A good start is to go through apache2 config:
  
-   grep ^Use domains.conf |cut -f4 -d\ >/​tmp/​d.txt+   grep ^Use domains.conf |cut -f4 -d\ |sort >/​tmp/​d.txt
        
 for a small number of domains, it is pretty quick and 100% correct going through the list manualy for a small number of domains, it is pretty quick and 100% correct going through the list manualy
Line 19: Line 19:
 <code bash> <code bash>
 for i in `cat /​tmp/​d.txt|xargs`;​ do for i in `cat /​tmp/​d.txt|xargs`;​ do
- host $i 8.8.8.8 |grep 146.255 -q || echo dead $i;+ host $i 8.8.8.8 |grep 146.255 -q || echo $i >>/​tmp/​dead.tmp;
 done done
 +sort /​tmp/​dead.tmp >/​tmp/​deads.txt
 </​code>​ </​code>​
 +    diff -u /tmp/ds.txt /​tmp/​dead2.txt |sed -n '​s/​^-\(.*\)/​\1/​p'​ >/​tmp/​alive.txt
  
 Generate the domains again Generate the domains again
 
xhost/migration-web.1581885425.txt.gz · Last modified: 2020/02/16 21:37 by admin