• Addfiles problem

    From Grease@1:103/705 to All on Thu Nov 21 22:51:35 2024
    I'm having a bit of a problem doing addfiles in a directory. I downloaded a Nigh Owl disc image and extracted into data/dirs. When I run the addfiles program for the directory I'm in, I get this error:

    sbbs@Linuxbox:/sbbs/data/dirs/nopv23/001A$ /sbbs/exec/jsexec addfiles -diz NOPV23_001A clear

    JSexec v3.20a-Linux master/1b6d5846a - Execute Synchronet JavaScript Module Compiled Nov 15 2024 10:12 with GCC 11.4.0

    Loading configuration files from /sbbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 167772160 bytes

    Reading script from /sbbs/exec/addfiles.js
    /sbbs/exec/addfiles.js compiled in 0.00 seconds
    !Directory 'NOPV23_001A' does not exist in configuration
    0 files added
    /sbbs/exec/addfiles.js executed in 0.01 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    What is the goofy thing that I am doing wrong?
    nopv23_001A is the internal code.

    Thanks guys!

    Grease (Will)
    HobbyNet: 954:200/56
    HealthNet: 999:1/6
    tqwNet: 1337:3/208

    ...A mixture of admiration and pity is one of the surest recipes for affectio

    ---
    þ Synchronet þ Synchronet | Dark Matter BBS | darkmatt.synchro.net | Kurten, TX.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Grease on Fri Nov 22 12:32:43 2024
    Re: Addfiles problem
    By: Grease to All on Thu Nov 21 2024 10:51 pm

    I'm having a bit of a problem doing addfiles in a directory. I downloaded a Nigh Owl disc image and extracted into data/dirs. When I run the addfiles program for the directory I'm in, I get this error:

    sbbs@Linuxbox:/sbbs/data/dirs/nopv23/001A$ /sbbs/exec/jsexec addfiles -diz NOPV23_001A clear

    What does "clear" do in this context?

    JSexec v3.20a-Linux master/1b6d5846a - Execute Synchronet JavaScript Module Compiled Nov 15 2024 10:12 with GCC 11.4.0

    Loading configuration files from /sbbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 167772160 bytes

    Reading script from /sbbs/exec/addfiles.js
    /sbbs/exec/addfiles.js compiled in 0.00 seconds
    !Directory 'NOPV23_001A' does not exist in configuration
    0 files added
    /sbbs/exec/addfiles.js executed in 0.01 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    What is the goofy thing that I am doing wrong?
    nopv23_001A is the internal code.

    So, normally you wouldn't extract a CD-ROM archive into data/dirs. That could possibly overwrite important files in that directory (though, not likely). So that's unusual. Instead, I like to put all my CD-ROMs into a common parent directory, e.g.:
    $ ll /cdrom/
    total 60
    drwxrwxrwx 19 rswindell rswindell 4096 Mar 27 2021 asp0696
    drwxr-xrwx 16 sbbs sbbs 4096 Feb 16 2005 cica95
    drwxr-xr-x 65 sbbs sbbs 4096 Feb 16 2005 cyberxpo
    drwxr-xrwx 66 sbbs sbbs 4096 Feb 16 2005 mm94
    drwxr-xr-x 61 sbbs sbbs 4096 Feb 16 2005 nopv13
    ...

    And then within that directory, you'll have each CD's directory hierarchy:

    $ ll /cdrom/nopv13/
    total 344
    drwxr-xr-x 2 sbbs sbbs 4096 Mar 30 2021 001A
    drwxr-xr-x 2 sbbs sbbs 4096 Jan 28 2011 002A
    drwxr-xr-x 2 sbbs sbbs 4096 Feb 16 2005 003A
    ...

    And then each CD is best created as a *library* in SCFG->File Areas. You can import a directory list or scan the directory to create the directories within the library in SCFG.

    And *then* you can use 'addfiles -lib=<name>' to import all the files and descriptions (either from file lists or DIZ) for each directory within that library (CD).
    --
    digital man (rob)

    This Is Spinal Tap quote #46:
    "Not an Exit" - we don't want an exit. Well that's true.
    Norco, CA WX: 71.9øF, 21.0% humidity, 3 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to Digital Man on Fri Nov 22 14:42:24 2024
    Re: Addfiles problem
    By: Digital Man to Grease on Fri Nov 22 2024 12:32:43

    And *then* you can use 'addfiles -lib=<name>' to import all the files and descriptions (either from file lists or DIZ) for each directory within that library (CD).

    I remember someone saying they were going to write a wiki with better details in this process :)

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Grease@1:103/705 to Digital Man on Fri Nov 22 20:20:55 2024
    Digital Man wrote to Grease <=-

    Re: Addfiles problem
    By: Grease to All on Thu Nov 21 2024 10:51 pm

    sbbs@Linuxbox:/sbbs/data/dirs/nopv23/001A$ /sbbs/exec/jsexec addfiles -diz NOPV23_001A clear

    What does "clear" do in this context?

    Weird. I don't know. I think it's from terminal. It's not there when I ran the program. I use clear to clear the screen after I run a program in terminal. So, it's just something that was there when I copied and pasted.

    So, normally you wouldn't extract a CD-ROM archive into data/dirs. That could possibly overwrite important files in that directory (though, not likely). So that's unusual. Instead, I like to put all my CD-ROMs into
    a common parent directory, e.g.:
    $ ll /cdrom/
    total 60
    drwxrwxrwx 19 rswindell rswindell 4096 Mar 27 2021 asp0696
    drwxr-xrwx 16 sbbs sbbs 4096 Feb 16 2005 cica95
    drwxr-xr-x 65 sbbs sbbs 4096 Feb 16 2005 cyberxpo
    drwxr-xrwx 66 sbbs sbbs 4096 Feb 16 2005 mm94
    drwxr-xr-x 61 sbbs sbbs 4096 Feb 16 2005 nopv13
    ...

    I just thought since I have a large hard drive, just put it there. All the other
    files are there. I guess I can move it there.
    Quick question you aren't using actual cd? Correct? You just copy them into a directory like /home/sbbs/cdrom/ ?

    And then within that directory, you'll have each CD's directory
    hierarchy:

    $ ll /cdrom/nopv13/
    total 344
    drwxr-xr-x 2 sbbs sbbs 4096 Mar 30 2021 001A
    drwxr-xr-x 2 sbbs sbbs 4096 Jan 28 2011 002A
    drwxr-xr-x 2 sbbs sbbs 4096 Feb 16 2005 003A
    ...

    That's what I have in /home/sbbs/sbbs/data/dirs/nopv23

    And then each CD is best created as a *library* in SCFG->File Areas.
    You can import a directory list or scan the directory to create the directories within the library in SCFG.

    I did that. For some reason, it can't find the FILES.BBS when it's there plain as day. So I just inputted them by directory.

    And *then* you can use 'addfiles -lib=<name>' to import all the files
    and descriptions (either from file lists or DIZ) for each directory
    within that library (CD).

    so I would do /home/sbbs/sbbs/exec/jsexec/addfiles -lib=nopv23 -diz?
    or ----------------------------------------------> -lib=001A -diz?


    ... MultiMail, the new multi-platform, multi-format offline reader!
    --- MultiMail/Linux v0.52
    þ Synchronet þ Synchronet | Dark Matter BBS | darkmatt.synchro.net | Kurten, TX.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Grease on Sat Nov 23 01:18:22 2024
    Re: Re: Addfiles problem
    By: Grease to Digital Man on Fri Nov 22 2024 08:20 pm

    I just thought since I have a large hard drive, just put it there. All the other
    files are there.

    I'm guessing that you mean you made your file storage directories in data/dirs/* (sub-directories of data/dirs). That's not the same as extracting a CD archive into data/dirs which would create *files* in data/dirs and (most likely) create sub-directories and files in those sub-directories of data/dirs. If you created a sub-directory off of data/dirs (say, for example, data/dirs/nopv23) and extracted the archive there, that would be better.

    I guess I can move it there.
    Quick question you aren't using actual cd? Correct? You just copy them into a directory like /home/sbbs/cdrom/ ?

    Correct.
    --
    digital man (rob)

    Synchronet "Real Fact" #34:
    The back-up synchro.net nameserver and CVS repository is hosted by Deuce
    Norco, CA WX: 50.0øF, 77.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Grease on Sat Nov 23 01:20:43 2024
    Re: Re: Addfiles problem
    By: Grease to Digital Man on Fri Nov 22 2024 08:20 pm

    That's what I have in /home/sbbs/sbbs/data/dirs/nopv23

    Okay, then I stand corrected. That fine, just a long path. :-)

    And then each CD is best created as a *library* in SCFG->File Areas. You can import a directory list or scan the directory to create the directories within the library in SCFG.

    I did that. For some reason, it can't find the FILES.BBS when it's there plain as day. So I just inputted them by directory.

    Inputted what by directory?

    And *then* you can use 'addfiles -lib=<name>' to import all the files and descriptions (either from file lists or DIZ) for each directory within that library (CD).

    so I would do /home/sbbs/sbbs/exec/jsexec/addfiles -lib=nopv23 -diz?
    or ----------------------------------------------> -lib=001A -diz?

    The argument to the "-lib" option is the name of the file library, so whatever you set in SCFG->File Areas for the library's short name. "001A" is most likelly a directory name or internal code and not a library name.
    --
    digital man (rob)

    Breaking Bad quote #18:
    All right, Operation: TBD, thanks for nothing Gomey. - Hank Schrader
    Norco, CA WX: 50.0øF, 77.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)