• error deleting file on time event

    From Ragnarok@VERT/DOCKSUD to DOVE-Net.Sync_JavaScript on Sun Jan 10 20:59:46 2021
    I continue working on my mhsgateway.

    https://github.com/ftoledo/mhsgateway

    I found a weird problem at my mhsgate.js file. when process message files.

    If I run my script with jsexec, both file_remove() and fp.remove() work
    fine and the file is deleted.

    But, when I run the script as Timed Event, both functions return FALSE
    with error 13 (permissions denied)

    Both jsexec and sbbs run as root every time.

    I add fp.debug = true to see if the file was open, but no, the file is
    closed before doing the remove.
    I see strange is that fp.is_open returns undefined

    Did this happen to someone?

    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Sun Jan 10 16:45:01 2021
    Re: error deleting file on time eventã By: Ragnarok to DOVE-Net.Sync_JavaScript on Sun Jan 10 2021 08:59 pmãã > I continue working on my mhsgateway.ã >ã > https://github.com/ftoledo/mhsgatewayã >ã > I found a weird problem at my mhsgate.js file. when process message files.ã >ã > If I run my script with jsexec, both file_remove() and fp.remove() workã > fine and the file is deleted.ã >ã > But, when I run the script as Timed Event, both functions return FALSEã > with error 13 (permissions denied)ããPerhaps the file is still open? Or it could be permissions. I think Linux normally allows the deletion of an open file.ãã > Both jsexec and sbbs run as root every time.ã >ã > I add fp.debug = true to see if the file was open, but no, the file isã > closed before doing the remove.ã > I see strange is that fp.is_open returns undefinedã >ã > Did this happen to someone?ããIt shouldn't. BinkIt is an example of a timed event that is able to remove files, no problem. There are many others.ã-- ã digital manããSynchronet/BBS Terminology Definition #78:ãTCP = Transmission Control ProtocolãNorco, CA WX: 67.2øF, 21.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã