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 

executing perl from tcl script?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
droolin
Halfop


Joined: 24 Jul 2003
Posts: 64

PostPosted: Sat Apr 15, 2006 10:54 pm    Post subject: executing perl from tcl script? Reply with quote

Is it possible to execute an external process from inside an tcl script. Ie, I want to call a perl script that creates an image file based on information known by the eggie.
Im going to be using perl, cause I want to use the GD perl module for creating this image.
Is it possible????

droolin
Back to top
View user's profile Send private message Visit poster's website
droolin
Halfop


Joined: 24 Jul 2003
Posts: 64

PostPosted: Sat Apr 15, 2006 11:12 pm    Post subject: would it be this??? Reply with quote

I havent written the perl program yet, so I havent tested. But, would it be something like this?

exec perl CreateImage.pl $varible

There is no need to receive back from this perl program the status. Like I said, its creating an image file for a web site based on things going on.

yes/no/maybe?

droolin
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Apr 16, 2006 12:51 am    Post subject: Reply with quote

yes
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
droolin
Halfop


Joined: 24 Jul 2003
Posts: 64

PostPosted: Sun Apr 16, 2006 1:07 am    Post subject: thank you Reply with quote

very much appriceated

droolin
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 16, 2006 4:01 am    Post subject: Reply with quote

I used a PERL script with asyncronous I/O (open |, fconfigure and fileevent), but because of ineffizienz of PERL (used way too much CPU and memory) I recently finished a conversion to native C code which dropped memory usage to about 10% and CPU usuage from 20-50% to under 0,2%.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
droolin
Halfop


Joined: 24 Jul 2003
Posts: 64

PostPosted: Sun Apr 16, 2006 11:00 am    Post subject: how often was the module called though? Reply with quote

The module I want to create will be called at most, twice an hour.
It's to create a banner for a web page containing the persons name that is streaming on an irc radio station. When they execute in channel a bot command to set topic that they are the current dj is the only time this would be called.
Currently the bot creates a text file pulled into a web page cgi script for the display, but someone wants to have the same display on frapper. And frapper wont let you link to cgi scripts. But, it will allow for an image.
So, I figured I would just have the eggie call a small script that cretaes an image of the dj's name. It might merge another image with it, but thats the extent of it.
I can understand how cpu usage would be high on intense graphic creation, but this shouldn't be that high because the graphics shouldnt be that great. God, I hope not anyway.


droolin
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting 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