| View previous topic :: View next topic |
| Author |
Message |
hotrs Voice
Joined: 03 Apr 2007 Posts: 13
|
Posted: Mon Apr 09, 2007 10:20 am Post subject: let the bot say something from outside |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Apr 09, 2007 8:55 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Apr 09, 2007 8:58 pm Post subject: |
|
|
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 |
|
 |
hotrs Voice
Joined: 03 Apr 2007 Posts: 13
|
Posted: Tue Apr 10, 2007 2:31 am Post subject: |
|
|
| 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 |
|
 |
hotrs Voice
Joined: 03 Apr 2007 Posts: 13
|
Posted: Tue Apr 10, 2007 2:39 am Post subject: |
|
|
| 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 |
|
 |
|