This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

[Trivia.tcl] Place the output html file on a remote web host

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
Exedore
Halfop
Posts: 43
Joined: Sun Jan 27, 2008 10:04 pm

[Trivia.tcl] Place the output html file on a remote web host

Post by Exedore »

In my Trivia TCL, I have the following section of codes:

Code: Select all

#  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: Select all

"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: Select all

"scp://user:pass@ftp.mysite.com/trivia/index.html"
?

For example:

Code: Select all

set tghtmlfile
"scp://user:pass@ftp.mysite.com/trivia/index.html"
OR

Code: Select all

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: Select all

OutputFile="/home/some-user/pisg/html/index.html"

Thanks you guys. Your answers will be helpful for many others.
User avatar
Exedore
Halfop
Posts: 43
Joined: Sun Jan 27, 2008 10:04 pm

Post by Exedore »

Can you help me with this? or you can not..?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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)...
User avatar
Exedore
Halfop
Posts: 43
Joined: Sun Jan 27, 2008 10:04 pm

Post by Exedore »

But those TCL s supports that feature..
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Exedore wrote:But those TCL s supports that feature..

Code: Select all

#  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.
User avatar
Exedore
Halfop
Posts: 43
Joined: Sun Jan 27, 2008 10:04 pm

Post by Exedore »

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..
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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.
Post Reply