Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 06-08-2005, 11:09 AM   #1
mentality
Junior Member
 
Join Date: May 2005
Posts: 14
Default [iTCL] change default script timeout via function

is there a way to change the amount of time a script can run without printing to console? or a way to keep a script running longer without output to console? atm, after 60(?) seconds, the connection will be lost, which is fine for most scripts, but i need a way to disable this from itcl for a script.

i know there used to be a setting in .ini (or there was no timeout, cant remeber exactly)

thanks.
mentality is offline  
Old 06-08-2005, 01:44 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default Re: [iTCL] change default script timeout via function

Quote:
Originally posted by mentality
is there a way to change the amount of time a script can run without printing to console?
Tcl scripts running from within ioFTPD do not have a 'console'. There is no way to change the default script-execution timeout (nor was there ever). In one of the major 5.x beta releases, this timeout was introduced.

However, there are tricks to extend the timeout. External applications can repeatedly write "no-op" commands to stdout and flush the channel (i.e. printf("!buffer off\n"); fflush(stdout); ). Tcl applications can use 'iputs -nobuffer <message>'. Both of these methods must be performed continually or on regular intervals before the timeout value.

I believe darkone mentioned that he would change the script-execution timeouts for the next ioFTPD beta release (don't quote me on this, though).
neoxed is offline  
Old 06-08-2005, 06:17 PM   #3
mentality
Junior Member
 
Join Date: May 2005
Posts: 14
Default

aye, ive already implimented iputs -nobuffer "message" to keep (in effect) script active.

just a bit messy tho..

cheers.
mentality is offline  
Closed Thread

Tags
change, console, script, scripts, timeout

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:15 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)