mysql

2008-09-03 Thread Mad Unix
I need to replicate MySQL DB of mulltiple server on SiteA to my DR-Site
Site_B... all DB
are alocated on RHEL,SuSE,Centos,Debian, FreeBSD servers.
I need a script to take Multiple MySql DataBase Backup and then import to
SiteB, the replica
can be done as cold or hotbackup and cron it
-- 
Madunix_at_Gmail
Sysadmin

"Computers are useless. They can only give you answers" - Pablo Picasso
"Never trust a computer you can't throw out a window." - Steve Wozniak
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


web chat server

2005-06-01 Thread Mad Unix
I want to implemet a web chat server on FreeBSD
any one did that before can give me some tips 

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


egghelp

2005-05-31 Thread Mad Unix
I am running an IRC bot to capture CNN news
When I call any news, it gave me the following
 !news list
 CNN Top Stories Headlines (c) CNN.com - by Thrill "!news help"
for options
  Get RSS direct from CNN.com! (http://www.cnn.com/services/rss/index.html)


I am using the following news.tcl

# CNN news.tcl V1.1
# by Thrill
#
# All newsheadlines parsed by this script are (C) cnn.com
#
# Version History: V1.0  - first public release
#  V1.01 - stupid bug ('putchan') fixed
#  V1.1  - added URL's to the newsitem.
# Remember to change this script before implementing it!
Remove/comment the 'die "CNN News not changed!"' afterwards.
# Only the location of lynx needs change.
#
# The author takes no responsibility whatsoever for the usage and
working of this script !
#
# E-mail: [EMAIL PROTECTED]

# default bind command !news, change to your liking
bind pub - "!news" news

# set the location of lynx here. Normally this should be ok.
#set lynx "/usr/bin/lynx"
set lynx "/usr/local/bin/lynx"

#set locations of tempfiles here, default /tmp/newstmp1.txt,
newstmp2.txt should be ok
set ftemp1 "/tmp/newstmp1.txt"
set ftemp2 "/tmp/newstmp2.txt"

# comment or remove this when you are done
# die "CNN News not changed!"
# see function PARSE below for the output-string, which can be changed
if you like, example included.

 DO NOT EDIT BELOW - EVERY CHANGE IS ON YOUR OWN RISK AND COULD
LEAD THIS SCRIPT TO FAIL! 

#define all strings here
set topstories"TOP STORIES"
set world "WORLD"
set us"US"
set politics  "POLITICS"
set weather   "WEATHER"
set business  "BUSINESS from CNNfn.com"
set sports"SPORTS from CNNSI.com"
set technology"TECHNOLOGY"
set space "SPACE"
set health"HEALTH"
set entertainment "ENTERTAINMENT"
set travel"TRAVEL"


# Function: news
# Purpose : public function called by the bind !news, selects
user-choice and forwards to 'parse'-function
proc news { nick uhost handle chan arg } {
  global topstories world us politics weather business sports
technology space health entertainment travel
   if {[llength $arg]==0} {
  putserv "PRIVMSG $chan :Please enter which news you would like
to read (!news help)"
   } else {
  if { [lindex $arg 0] == "help" } {
putserv "notice $nick :CNN News v1.1 - www.cnn.com - by Thrill"
putserv "notice $nick :Usage: !news "
putserv "notice $nick :where  is one of the following:"
putserv "notice $nick :^Btop^B - Top Stories,
^Bworld^B - World News"
putserv "notice $nick :^Bus^B  - US News,
^Bpolitics^B  - Politics News"
putserv "notice $nick :^Bweather^B - Weather News   ,
^Bbusiness^B  - Business News"
putserv "notice $nick :^Btech^B- Technology News,
^Bspace^B - Space News"
putserv "notice $nick :^Bhealth^B  - Health News,
^Bentertain^B - Entertainment News"
putserv "notice $nick :^Bsports^B  - Sports News,
^Btravel^B- Travel News"
  } else {
# first get the news into the two tempfiles, seperated on
headlines and references
getnews $nick $chan
# now parse the selected news to the chan
switch [lindex $arg 0] {
"top" {
putchan $chan "^C3CNN Top Stories Headlines (c) CNN.com -
by Thrill^C"
parse $nick $uhost $handle $chan $topstories
  }
"world"  {
putchan $chan "^C3CNN World News Headlines (c) CNN.com -
by Thrill^C"
parse $nick $uhost $handle $chan $world
  }
"us"  {
putchan $chan "^C3CNN US Headlines (c) CNN.com - by Thrill^C"
parse $nick $uhost $handle $chan $us
  }
   "politics" {
putchan $chan "^C3CNN Politics Headlines (c) CNN.com - by Thrill^C"
parse $nick $uhost $handle $chan $politics
  }
   "weather"  {
putchan $chan "^C3CNN Weather Headlines (c) CNN.com - by Thrill^C"
parse $nick $uhost $handle $chan $weather
  }
   "business"  {
putchan $chan "^C3CNN Business Headlines (c) CNN.com - by Thrill^C"
parse $nick $uhost $handle $chan $business
  }
   "tech" {
putchan $chan "^C3CNN Technology Headlines (c) CNN.com -
by Thrill^C"
parse $nick $uhost $handle $chan $technology
  }
   "space" {
putchan $chan "^C3CNN Space Headlines (c) CNN.com - by Thrill^C"
parse $nick $uhost $handle $chan $space
  }
   "health" {
putchan $chan "^C3CNN Health Headlines (c) CNN.com - by Thrill^C"
parse $nick $uhost $handle $chan $health
  }
   "entertain" {
putchan $chan "^C3CNN Entertainment Headlines (c) CNN.com
- by Thrill^C"
parse $nick $uhost $handle $chan $entertainment
  }
   "sports" {
putchan $chan "^C3CNN Sports Headlines (c) CNN.com - by T

Re: web protection

2005-05-30 Thread Mad Unix
it works now, user  created and added
to httpd.conf

 AllowOverride ALL
 order allow,deny
 allow from all


thanks


On 5/30/05, albi <[EMAIL PROTECTED]> wrote:
> On Mon, 30 May 2005 14:28:47 +0400
> Mad Unix <[EMAIL PROTECTED]> wrote:
> 
> > I used this link http://faq.web2010.com/htaccess.htm
> > but still cant see the effect of protection
> --- cut ---
> > I created the .htpasswd via
> > htpasswd -c .htpasswd proxy
> > and vi.htaccess is
> > AuthUserFile /var/www/html/squid-reports/.htpasswd
> 
> it's recommended to place the passwd-file outside the www-tree
> 
> > AuthGroupFile /dev/null/
> > AuthName proxy
> > AuthType Basic
> > Require valid-user
> 
> user proxy does exist ?
> did you load the auth-module in apache ?
> 
> the following might be useful :
> http://httpd.apache.org/docs/howto/auth.html
> http://httpd.apache.org/docs-2.0/howto/auth.html
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


web protection

2005-05-30 Thread Mad Unix
I used this link http://faq.web2010.com/htaccess.htm
but still cant see the effect of protection

squid# pwd
/var/www/html/squid-reports
squid# ls -al
total 646
drwxr-xr-x  25 root  wheel   1024 May 30 12:56 .
drwxr-xr-x   3 root  wheel512 Jan 28  2004 ..
-rw-r--r--   1 root  wheel125 May 30 13:13 .htaccess
-rw-r--r--   1 root  wheel 20 May 30 13:28 .htpasswd
drwxr-xr-x   2 root  wheel  24576 Oct  3  2004 2004Oct03-2004Oct03
drwxr-xr-x   2 root  wheel  36864 Sep 16  2004 2004Sep15-2004Sep15
-rw-r--r--   1 root  wheel   9893 May 29 17:20 index.html


I created the .htpasswd via
htpasswd -c .htpasswd proxy
and vi.htaccess is
AuthUserFile /var/www/html/squid-reports/.htpasswd
AuthGroupFile /dev/null/
AuthName proxy
AuthType Basic
Require valid-user

Any am doing wrong!!
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


web protection

2005-05-30 Thread Mad Unix
I have the internal web sitehttp://10.5.5.5 which monitor the internet
usage of my employee I want to implemet web-based user authentication
using HTAcess with valid username and password.

How can I implement this mechanisms?

squid# uname -a
FreeBSD squid  5.1-RELEASE FreeBSD 5.1-RELEASE #3

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"