| View previous topic :: View next topic |
| Author |
Message |
DeFirence Voice
Joined: 31 Oct 2006 Posts: 8
|
Posted: Mon Jan 08, 2007 9:21 am Post subject: Remotely hosted eggdrop.conf |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Jan 08, 2007 9:48 am Post subject: |
|
|
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 |
|
 |
DeFirence Voice
Joined: 31 Oct 2006 Posts: 8
|
Posted: Mon Jan 08, 2007 10:00 am Post subject: |
|
|
| 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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Tue Jan 09, 2007 12:25 am Post subject: |
|
|
| 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? _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Tue Jan 09, 2007 12:53 am Post subject: |
|
|
| 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 |
|
 |
|