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 

let the bot say something from outside

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


Joined: 03 Apr 2007
Posts: 13

PostPosted: Mon Apr 09, 2007 10:20 am    Post subject: let the bot say something from outside Reply with quote

Hi *.*.

Is it possible, e.g. through a shell script, to let the bot say something?

I want to use pisg for generating channel stats, but I can't use a eggdrop script because the bot has no access to the web directory (chroot environment). So my idea was to use a cron job for generating the stats - but I want the bot to say something like "new channel stats at http://...".


greets and thx,
hotrs
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 Apr 09, 2007 8:55 pm    Post subject: Reply with quote

rosc2112 has written a shell script for pisg that I found very usefull. Seach for "sendftp".

As for the other, a simple announce script should do it; heaps in the archive.
_________________
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
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Apr 09, 2007 8:58 pm    Post subject: Reply with quote

Not the simplest solution but you could probably use netcat or expect to connect to the telnet console on the bot and issue commands from there..

Me, I would just use a tcl script with a time bind, and have my shell/cron script create a flag file when it was done, and then have my tcl script with the time bind look for that flag file and make an announcement when an update was available..
Back to top
View user's profile Send private message
hotrs
Voice


Joined: 03 Apr 2007
Posts: 13

PostPosted: Tue Apr 10, 2007 2:31 am    Post subject: Reply with quote

Alchera wrote:
rosc2112 has written a shell script for pisg that I found very usefull. Seach for "sendftp".

As for the other, a simple announce script should do it; heaps in the archive.


I don't think that works for me: First, perl - and therefore pisg - isn't available in the chroot environment eggdrop is running in. So I can't use a eggdrop script to generate the stats. Second, there is no ftp server running - and I don't plan to install one.

The announce script had to be synchronize with pisg - that's the problem.


greets,
hotrs
Back to top
View user's profile Send private message
hotrs
Voice


Joined: 03 Apr 2007
Posts: 13

PostPosted: Tue Apr 10, 2007 2:39 am    Post subject: Reply with quote

rosc2112 wrote:
Not the simplest solution but you could probably use netcat or expect to connect to the telnet console on the bot and issue commands from there..


Good point. I don't know netcat or expect, but I will have a look.


Quote:

Me, I would just use a tcl script with a time bind, and have my shell/cron script create a flag file when it was done, and then have my tcl script with the time bind look for that flag file and make an announcement when an update was available..


That was my first idea, too. The shell script which start pigs just create a little text file. A tcl script for the bot just checks periodically for that file, use the text in the file for an announcement and delete the file.


greets,
hotrs
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