Lua API calls fail
Posted: Sat Aug 11, 2012 9:45 am
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?
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?