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 

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

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Exedore
Halfop


Joined: 27 Jan 2008
Posts: 43

PostPosted: Sun Jun 15, 2008 7:00 am    Post subject: [Trivia.tcl] Place the output html file on a remote web host Reply with quote

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
View user's profile Send private message
Exedore
Halfop


Joined: 27 Jan 2008
Posts: 43

PostPosted: Thu Jun 19, 2008 9:56 am    Post subject: Reply with quote

Can you help me with this? or you can not..?
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Jun 19, 2008 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Exedore
Halfop


Joined: 27 Jan 2008
Posts: 43

PostPosted: Thu Jun 19, 2008 2:09 pm    Post subject: Reply with quote

But those TCL s supports that feature..
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Jun 19, 2008 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Exedore
Halfop


Joined: 27 Jan 2008
Posts: 43

PostPosted: Thu Jun 19, 2008 5:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Jun 19, 2008 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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