| View previous topic :: View next topic |
| Author |
Message |
droolin Halfop

Joined: 24 Jul 2003 Posts: 64
|
Posted: Sat Apr 15, 2006 10:54 pm Post subject: executing perl from tcl script? |
|
|
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 |
|
 |
droolin Halfop

Joined: 24 Jul 2003 Posts: 64
|
Posted: Sat Apr 15, 2006 11:12 pm Post subject: would it be this??? |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Apr 16, 2006 12:51 am Post subject: |
|
|
yes _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
droolin Halfop

Joined: 24 Jul 2003 Posts: 64
|
Posted: Sun Apr 16, 2006 1:07 am Post subject: thank you |
|
|
very much appriceated
droolin |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Apr 16, 2006 4:01 am Post subject: |
|
|
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 |
|
 |
droolin Halfop

Joined: 24 Jul 2003 Posts: 64
|
Posted: Sun Apr 16, 2006 11:00 am Post subject: how often was the module called though? |
|
|
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 |
|
 |
|