egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remotely hosted eggdrop.conf

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
DeFirence
Voice


Joined: 31 Oct 2006
Posts: 8

PostPosted: Mon Jan 08, 2007 9:21 am    Post subject: Remotely hosted eggdrop.conf Reply with quote

Lo all,

How can i set up eggdrop on a server and have the eggdrop.conf file hosted on a different server?

Thanks in advanced.

DeFirence
GT-Radio Staff
http://www.gt-radio.co.za
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Jan 08, 2007 9:48 am    Post subject: Reply with quote

eggdrop.conf resides within the same folder as eggdrop on the same box.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
DeFirence
Voice


Joined: 31 Oct 2006
Posts: 8

PostPosted: Mon Jan 08, 2007 10:00 am    Post subject: Reply with quote

Alchera wrote:
eggdrop.conf resides within the same folder as eggdrop on the same box.


Is there no way that i can put it in a remote location, because i cannot be given access the the server where the bot gets run from, but i need to update the eggdrop.conf regularly..

DeFirence
GT-Radio Staff
http://www.gt-radio.co.za
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Tue Jan 09, 2007 12:25 am    Post subject: Reply with quote

DeFirence wrote:
Is there no way that i can put it in a remote location, because i cannot be given access the the server where the bot gets run from, but i need to update the eggdrop.conf regularly..
maybe you can have the administrator allow you to use the .set and .tcl commands.... but why in the world would you need to update the conf file so much anyways?
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Tue Jan 09, 2007 12:53 am    Post subject: Reply with quote

DeFirence wrote:
Is there no way that i can put it in a remote location, because i cannot be given access the the server where the bot gets run from, but i need to update the eggdrop.conf regularly.

Try this:
Code:
# eggdrop.conf:
package require http 2.3
proc rsource {url args} {
   set d [list -async 0 ns [uplevel 1 {namespace current}]]
   array set o [concat $d $args]
   if {$o(-async)} {
      http::geturl $url -command [list rsource $url ns $o(ns) tok]
   } elseif {[info exists o(tok)]} {
      upvar #0 $o(tok) s
   } else {
      upvar #0 [http::geturl $url] s
   }
   if {[info exists s]} {
      if {$s(status)=="ok"&&[lindex [split $s(http)] 1]=="200"} {
         set code [list namespace eval $o(ns) $s(body)]
         if {[catch {uplevel #0 $code} r]} {
            putlog "rsource error ($url): $r"
         } else {
            putlog "rsource done: $url"
         }
      } else {
         putlog "rsource http error: $url"
      }
      unset s
   }
}
rsource http://some.tld/remote.conf

_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber