Hi,
trying to get acquainted with the Lua API. It works fine as such and I can do simple print statements and use all the admin commands returned by --help.
lua>>print("Test")
Test
lua>>date
Sat Aug 11 01:52:24 2012
Also API variables work fine:
lua>> print("%ServerName %ServerVersion")
Wing FTP Server 4.0.9
But any attempt to use the API functions fails with the same basic error message:
lua>>print(c_getAppPath())
some error in [string "print(c_getAppPath())"]:1: attempt to call global 'c_getAppPath' (a nil value)!
I tried this both from the webconsole and the shell and the result is the same. Looks like those functions aren't defined. What am I missing?
Lua API calls fail
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: Lua API calls fail
print(c_GetAppPath())
-
- Posts: 6
- Joined: Fri May 20, 2011 6:50 am
Re: Lua API calls fail
Now that's embarrassing... a real blond moment there. Thanks!