I am trying to set up logging functionality for certain inputs. The idea is to create a file with the logs and retrieve it with FTP.
However when I call this in the script to create the file:
local file,errfile = io.open('\\logfile.log', w)
both file and errfile are nil! So there is no error but the file is not created either.
I suppose I cannot create files in the root, if so where do I need to put it so I can create it and fetch it later with FTP?
Thanks in advance,
hello, thank you for the quick response, however I changed the script to:
file,errfile = io.open('/home/ftp/logfile.log', w)
but file is still nil, are there some other configurations (FTP is enabled) I need to do?
You can find examples at the openrb forum: