Go Back   FlashFXP Forums > > > >

NeoXed's scripts nxAutoNuke, nxTools, etc.

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-13-2010, 01:17 AM   #1
Saiph
Junior Member
 
Join Date: Oct 2010
Posts: 23
Default NEWDATE error

first time i get this error after 1 week of no errors

nxDebug.log
Quote:
12-12-2010 00:00:05 - Script : ..\scripts\nxTools\nxUtilities.tcl
12-12-2010 00:00:05 - args : NEWDATE
12-12-2010 00:00:05 - user : can't read "user": no such variable
12-12-2010 00:00:05 - group : can't read "group": no such variable
12-12-2010 00:00:05 - groups : can't read "groups": no such variable
12-12-2010 00:00:05 - flags : can't read "flags": no such variable
12-12-2010 00:00:05 - path : can't read "path": no such variable
12-12-2010 00:00:05 - pwd : can't read "pwd": no such variable
any ideas ?
Saiph is offline   Reply With Quote
Old 12-13-2010, 01:55 AM   #2
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

See if you run it manually via "site newdate" if it works fine...

Scheduler functions don't run under a user account and thus all the normal ioFTPD provided TCL variables aren't defined. nxTools solves this by activating a user account and loading a vfs file to resolve paths via the variables:
Code:
set misc(MountUser)     "sitebot"
set misc(MountFile)     "../etc/admin.vfs"
Change those to a valid user in nxTools.cfg and the problem should go away...
Yil is offline   Reply With Quote
Old 12-13-2010, 10:27 AM   #3
Saiph
Junior Member
 
Join Date: Oct 2010
Posts: 23
Default

Quote:
Originally Posted by Yil View Post
See if you run it manually via "site newdate" if it works fine...

Scheduler functions don't run under a user account and thus all the normal ioFTPD provided TCL variables aren't defined. nxTools solves this by activating a user account and loading a vfs file to resolve paths via the variables:
Code:
set misc(MountUser)     "sitebot"
set misc(MountFile)     "../etc/admin.vfs"
Change those to a valid user in nxTools.cfg and the problem should go away...
it works fine, sometimes it announces the newdate 2 times, creating the current and the new day.


irc announce
Quote:
[12:00 am] <*********> NEWDATE created for /O-DAY/1212
[12:00 am] <*********> NEWDATE created for /O-DAY/1213
Saiph is offline   Reply With Quote
Old 12-13-2010, 02:54 PM   #4
Saiph
Junior Member
 
Join Date: Oct 2010
Posts: 23
Default

that worked thanks Yil
Saiph is offline   Reply With Quote
Old 12-22-2010, 07:49 PM   #5
Saiph
Junior Member
 
Join Date: Oct 2010
Posts: 23
Default

ok i got another question to ask, what would cause the newdate announce 1 day late but create the newdate without announce
example : today is the 22nd the newdate announce it created the 22nd but makes the 23nd without announce when it should be announcing the 23rd

current setting
Quote:
set newdate(Default) {
{O-Days {New O-Days} {/O-Days/%M%D} {L:/FTPserver/O-Days/%M%D} {c:/ioFTPD/site/Today-O-Days} True 0 0 0 777}
{O-Days {Close O-Days} {/O-Days/%M%D} {L:/FTPserver/O-Days/%M%D} {c:/ioFTPD/site/Yesterday-O-Days} False 1 0 0 755}
Saiph is offline   Reply With Quote
Old 12-23-2010, 04:10 AM   #6
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

The Close 0-Days line should read .. False -1 0 0 755 (as in close yesterday) and not False 1 0 0 755 which is close tomorrow...
Yil is offline   Reply With Quote
Reply

Tags
000005, 12-12-2010, error, read, variable


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 Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:14 AM.

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