| View previous topic :: View next topic |
| Author |
Message |
Exedore Halfop

Joined: 27 Jan 2008 Posts: 43
|
Posted: Sun Jun 15, 2008 7:00 am Post subject: [Trivia.tcl] Place the output html file on a remote web host |
|
|
In my Trivia TCL, I have the following section of codes:
| Code: | # The full path to the file which the bot will use to generate
# an HTML info page. The account the bot runs on must have read
# & write access to this file. If the file does not exist, it will
# be created when needed.
set tghtmlfile
"/home/some-user/eggdrop/scripts/trivia_html/index.htm" |
The 'index.html' file generates without trouble in the local folder of the shell, and shows the scores of the players.
But the web in which I want that output to appear is not within the same server as my IRCd. The irc server is different from the web server.
My question is: what should I do in order to generate de index.html file and place it inside the folder that I have previously prepared for it ..which is on my web server
| Code: | | "www.mysite.com/trivia" |
My shell has the SCP protocol enabled, but I'm not sure if it is necessary to use that protocol to copy the file, if necessary, how is it done?
Should I use something like this?:
| Code: | | "scp://user:pass@ftp.mysite.com/trivia/index.html" | ?
For example:
| Code: | set tghtmlfile
"scp://user:pass@ftp.mysite.com/trivia/index.html" |
OR
| Code: | set tghtmlfile
"ftp://user:pass@ftp.mysite.com/trivia/index.html" |
I'm having a very hard time understanding this..
The same happens with the pisg.
| Code: | | OutputFile="/home/some-user/pisg/html/index.html" |
Thanks you guys. Your answers will be helpful for many others. |
|
| Back to top |
|
 |
Exedore Halfop

Joined: 27 Jan 2008 Posts: 43
|
Posted: Thu Jun 19, 2008 9:56 am Post subject: |
|
|
| Can you help me with this? or you can not..? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jun 19, 2008 10:07 am Post subject: |
|
|
| Exedore wrote: | | Can you help me with this? or you can not..? |
Those scripts assume your bot, is also an httpd. Therefore the directories do not span (read this as, cannot do what you want, ever) onto another server. The server which the bot is on does double duty, handles bot traffic and httpd traffic.
To accomplish what you want (seperate servers for bot/httpd) requires use of possibly wget (to transfer bot files to the httpd) and background processing (so while uploading bot can do other tasks)... _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
Exedore Halfop

Joined: 27 Jan 2008 Posts: 43
|
Posted: Thu Jun 19, 2008 2:09 pm Post subject: |
|
|
| But those TCL s supports that feature.. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jun 19, 2008 3:16 pm Post subject: |
|
|
| Exedore wrote: | | But those TCL s supports that feature.. |
| Code: | # The full path to the file which the bot will use to generate
# an HTML info page. The account the bot runs on must have read
# & write access to this file. If the file does not exist, it will
# be created when needed. |
No it doesn't. It expects your bot and httpd to be running from the exact same server. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
Exedore Halfop

Joined: 27 Jan 2008 Posts: 43
|
Posted: Thu Jun 19, 2008 5:39 pm Post subject: |
|
|
I understand..
In that case... is there any method to make this possible?
some TCL?
I've tried with sendftp but it doesn't work
I don't want to give up.. |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Thu Jun 19, 2008 7:48 pm Post subject: |
|
|
| Exedore wrote: | I understand..
In that case... is there any method to make this possible?
some TCL?
I've tried with sendftp but it doesn't work
I don't want to give up.. |
Google "wget" there are programs for this. |
|
| Back to top |
|
 |
|