Go Back   FlashFXP Forums > Community Chatter > Programming

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

Closed Thread
 
Thread Tools Rate Thread
Old 01-04-2004, 11:17 AM   #1
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,462
Default [itcl] mountfile open doesn't work for scheduled scripts

That's the code i use for testing, using ioFTPD 5.4.3r
Code:
set anuke(mtab)	"C:/ioFTPD/etc/default.vfs"

proc autonuke {} {
global anuke
# Load mount table
if {[catch { mountfile open $anuke(mtab) }]!= 0} {return 1}
putlog "TEST: \"/\" is resolved to \"[resolve pwd "/"]\" using \"$anuke(mtab)\""
}
autonuke
That's what i get in ioFTPD.log when i run the script using a site command:
01-04-2004 18:10:11 TEST: "/" is resolved to "C:/ioFTPD/site" using "C:/ioFTPD/etc/default.vfs"

And that's what i get when i use the scheduler:
01-04-2004 18:10:44 TEST: "/" is resolved to "" using "C:/ioFTPD/etc/default.vfs"
Harm is offline  
Old 01-04-2004, 11:36 AM   #2
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

Oh, try opening userfile too (i think it requires one)
darkone is offline  
Old 01-04-2004, 11:53 AM   #3
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,462
Default

Indeed, it has to be:
Code:
if {[catch { userfile open "sitebot" }]!= 0} {return 1}
if {[catch { mountfile open $anuke(mtab) }]!= 0} {return 1}
Thank you darkone.
Harm is offline  
Closed Thread
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 12:21 PM.