| View previous topic :: View next topic |
| Author |
Message |
elal Voice
Joined: 19 Aug 2009 Posts: 1
|
Posted: Wed Aug 19, 2009 8:21 pm Post subject: External script taking too long to execute? |
|
|
I am writing a TCL script for the eggdrop bot. The primary function of this TCL script is to call an external BASH script. The BASH script takes a variable amount of time to execute, because it must first download software, and sometimes that software is rather large.
During those times when the BASH script is downloading a large file, there appears to be some sort of time-out issue, because the TCL script never produces any result to the channel. The external BASH script succeeds, but its output never reaches the TCL script which called it.
During those times when the bash script is only downloading *small* files, the output from the bash script reaches the TCL caller, and everything is fine.
Is anyone familiar with external script timeouts in eggdrop/TCL scripts? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Aug 20, 2009 7:01 pm Post subject: |
|
|
Your best option would be to use the "open" command with pipes. This allows you to interact with the stdin/stdout pipes of your script as if it was any ordinary file, while at the same time the script will not block tcl (and thus not eggdrop either). _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|
|
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
|
|