• Editing file database?

    From Charlie@VERT/COFFEE to All on Sunday, March 04, 2018 16:58:04
    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet. I did so but typoed big time in one file's description. Is there a way to edit that description and fix my mistakes? Failing that, is there a way to delete that file from the database so I can add it again?

    ---
    þ Synchronet þ COFFEE
  • From MRO@VERT/BBSESINF to Charlie on Sunday, March 04, 2018 10:21:48
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet. I did so but typoed big time in one file's description. Is there a way to edit that description and fix my mistakes? Failing that, is there a way to delete that file from the database so I can add it again?



    you didnt say if you were running a linux or windows version, but yes, more than one way to upload files to your 'database'. there's also ways to edit existing descriptions or deleting a file from the db or for real.

    check out the synchronet documentation, it's all there.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to Charlie on Sunday, March 04, 2018 12:52:04
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet.

    There are other ways too:
    http://wiki.synchro.net/faq:files#adding_files

    I did so but typoed big time
    in one file's description. Is there a way to edit that description and fix my mistakes?

    Yes, use the 'R'emove/edit file command.

    Failing that, is there a way to delete that file from the
    database so I can add it again?

    Yes, same command.

    digital man

    Synchronet/BBS Terminology Definition #16:
    DOVE = Domain/Vertrauen
    Norco, CA WX: 59.3øF, 41.0% humidity, 2 mph NNW wind, 0.06 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From KK4QBN@VERT/KK4QBN to Charlie on Sunday, March 04, 2018 14:52:29
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 16:58:04

    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet. I did so but typoed big time in one file's description. Is there a way to edit that description and fix my mistakes? Failing that, is there a way to delete that file from the database so I can add it again?

    Use the wiki and read up on the addfiles and delfiles commandline utilities. much easier than using the ;upload command once mastered.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Al@VERT/TRMB to Charlie on Sunday, March 04, 2018 14:53:04
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet. I did so but typoed big time in one file's description. Is there a way to edit that description and fix my mistakes? Failing that, is there a way to delete that file from the database so I can add it again?

    Sometimes if I want to edit a files extended description I will create a files.bbs like this..

    filename.ext This is description line one
    this is description line two
    this is desctiption line three

    then use addfiles to import the files.bbs. The files.bbs should be in the same directory as the file you want to import / update.

    a command like addfiles code options. I use a command like..

    addfiles main-bbs -di -x "-> ADDFILES <-"

    That command will search the main-bbs directory for the files.bbs and add the files if found, -d will deleted the files.bbs when done, -i will add imported files to your ststistics and -x can be used to specify a differnt uploader name.

    Ttyl :-),
    Al


    ... Thesaurus: ancient reptile with an excellent vocabulary

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From Marisag@VERT/AMIGAC to KK4QBN on Monday, March 05, 2018 02:58:12
    Re: Editing file database?
    By: KK4QBN to Charlie on Sun Mar 04 2018 14:52:29

    description and fix my mistakes? Failing that, is there a way to delete that file from the database so I can add it again?
    Use the wiki and read up on the addfiles and delfiles commandline utilities. much easier than using the ;upload command once mastered.
    My bbs utils archive has several tools that make adding files easily and posting new files announcements as well. At the leastthey can be used as a example for your own efforts. You can get them here: https://synchronetbbs.org/index.php/downloads/download/6-sysop/148-bbs-utils-11 2 - that should be the latest version but if you are comfortable with git here is the github link: https://github.com/fstltna/bbs_utils

    Git has the advantage you can get the updates as they come out without needing to install any upgrades, etc...

    Marisa
    --- https://AmigaCity.xyz - Portal for the Amiga - More than 2,600 free DLs
    --- https://AmigaCityLaptops.com - Laptops & Handhelds that run AmigaOS
    --- https://AmigaCity.xyz/radio.html - Amiga game music 24/7
    þ Synchronet þ Amiga City - The BBS for the Amiga - more than 2,500+ files
  • From Charlie@VERT/COFFEE to Al on Monday, March 05, 2018 08:28:14
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    Sometimes if I want to edit a files extended description I will create a files.bbs like this..

    filename.ext This is description line one
    this is description line two
    this is desctiption line three

    then use addfiles to import the files.bbs. The files.bbs should be in the same directory as the file you want to import / update.

    a command like addfiles code options. I use a command like..

    addfiles main-bbs -di -x "-> ADDFILES <-"

    That command will search the main-bbs directory for the files.bbs and add the files if found, -d will deleted the files.bbs when done, -i will add imported files to your ststistics and -x can be used to specify a differnt uploader name.

    Ttyl :-),
    Al


    ... Thesaurus: ancient reptile with an excellent vocabulary

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net

    Thanks, Al. I read the addfiles Wiki page but it didn't tell me what format the files.bbs files used, and it's been so many years since I've seen one I forgot what they were like.

    Is there a new line between file listings when you have more than one file, like
    filename description line 1

    ---
    þ Synchronet þ COFFEE
  • From Charlie@VERT/COFFEE to Charlie on Monday, March 05, 2018 08:30:21
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm


    Thanks, Al. I read the addfiles Wiki page but it didn't tell me what format the files.bbs files used, and it's been so many years since I've seen one I forgot what they were like.

    Is there a new line between file listings when you have more than one file, like
    filename description line 1

    I accidentally posted too soon.

    filename description line 1
    description line 2
    description line 3

    filename2 description line 1
    description line 2

    Or is there no new line in between file listings?

    ---
    þ Synchronet þ COFFEE
  • From Charlie@VERT/COFFEE to Digital Man on Monday, March 05, 2018 08:40:21
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet.

    There are other ways too:
    http://wiki.synchro.net/faq:files#adding_files

    I did so but typoed big time
    in one file's description. Is there a way to edit that description and fix my mistakes?

    Yes, use the 'R'emove/edit file command.

    Failing that, is there a way to delete that file from the
    database so I can add it again?

    Yes, same command.

    digital man

    Synchronet/BBS Terminology Definition #16:
    DOVE = Domain/Vertrauen
    Norco, CA WX: 59.3øF, 41.0% humidity, 2 mph NNW wind, 0.06 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net

    ---
    þ Synchronet þ COFFEE
  • From Charlie@VERT/COFFEE to Digital Man on Monday, March 05, 2018 08:46:08
    I did it again, posted too soon! I need more coffee!

    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    The only way that I've found to add files to the sbbs file database is via the ;upload command when logged in via telnet.

    There are other ways too:
    http://wiki.synchro.net/faq:files#adding_files

    That requires having either FILE_ID.DIZ or FILES.BBS files to add from. I was just looking for a way to directly add the files that I'd placed in the appropriate directories without fooling with making text files first (which turns out to me not as easy as, say, making a FILES.BBS file.) :)

    I did so but typoed big time
    in one file's description. Is there a way to edit that description and fix my mistakes?

    Yes, use the 'R'emove/edit file command.

    Failing that, is there a way to delete that file from the
    database so I can add it again?

    Yes, same command.

    digital man

    Thanks. That worked. I'm here to tell you that if you tell it to also delete the file, it does that too. I had to download one file again. Whoops! :)

    ---
    þ Synchronet þ COFFEE
  • From Charlie@VERT/COFFEE to Al on Monday, March 05, 2018 09:22:09
    Re: Editing file database?
    By: Charlie to All on Sun Mar 04 2018 04:58 pm

    Sometimes if I want to edit a files extended description I will create a files.bbs like this..

    filename.ext This is description line one
    this is description line two
    this is desctiption line three

    then use addfiles to import the files.bbs. The files.bbs should be in the same directory as the file you want to import / update.

    a command like addfiles code options. I use a command like..

    addfiles main-bbs -di -x "-> ADDFILES <-"

    That command will search the main-bbs directory for the files.bbs and add the files if found, -d will deleted the files.bbs when done, -i will add imported files to your ststistics and -x can be used to specify a differnt uploader name.

    Ttyl :-),
    Al

    I tried that and it didn't work. I created a files.bbs file with these contents:
    pcloskde.iso pclinuxos64-kde5-2017.11.iso PCLinuxOS is IMO one of the best Linux
    distributions there is. The KDE5 Plasma window manager in this version is
    a full-featured, very Windows-like user interface that makes Linux easier to use

    pclsmate.iso pclinuxos64-MATE-2017.11.iso This is PCLinuxOS with the MATE window manager,
    which aims for simplicity and ease of use. It may work better than KDE on
    older or less-powerful computers as MATE uses fewer resources than KDE.

    md5sums.zip Contains the md5 checksum files for the above two PCLinuxOS iso image files.

    and ran this command:

    ./addfiles LINUX -di

    and got this result:

    ADDFILES v3.03-Linux (rev 1.54) - Adds Files to Synchronet Filebase

    Loading configuration files from /mnt/storage/sbbs/ctrl
    Adding /mnt/storage/sbbs/data/dirs/linux/files.bbs to Main Linux

    pcloskde.iso pclinuxos64-kde5-2017.11.iso PCLinuxOS is IMO one of the best Linux
    /mnt/storage/sbbs/data/dirs/linux/pcloskde.iso pclinuxos64-kde5-2017.11.iso not found.
    pclsmate.iso pclinuxos64-MATE-2017.11.iso This is PCLinuxOS with the MATE window manager,
    /mnt/storage/sbbs/data/dirs/linux/pclsmate.iso pclinuxos64-MATE-2017.11.iso not found.
    md5sums.zip Contains the md5 checksum files for the above two PCLinuxOS iso image files.
    /mnt/storage/sbbs/data/dirs/linux/md5sums.zip Contains not found.

    Deleting /mnt/storage/sbbs/data/dirs/linux/files.bbs

    I'll play with it some more later on and see if I can figure it out.

    ---
    þ Synchronet þ COFFEE
  • From Al@VERT/TRMB to Charlie on Monday, March 05, 2018 00:57:38
    Re: Re: Editing file database?
    By: Charlie to Al on Mon Mar 05 2018 09:22 am

    Deleting /mnt/storage/sbbs/data/dirs/linux/files.bbs

    I'll play with it some more later on and see if I can figure it out.

    It will take some experimentation with addfiles to get the result you want. I don't have a blank line between files in my files.bbs but I don't think it will hurt. I've also found that it's best to limit the line length to something like 56 characters and then add another description line. That's not including the filename.ext at the beggining of the first line. That way descriptions don't wrap unexpectedly when folks are listing files with extended descriptions enabled.

    You may not want the -d option to delete the files.bbs in case you want to edit the files.bbs and redo it.

    Ttyl :-),
    Al


    ... Mathematician: A device for turning coffee into theorems!

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From Charlie@VERT/COFFEE to Marisag on Monday, March 05, 2018 14:53:42
    Re: Editing file database?
    By: KK4QBN to Charlie on Sun Mar 04 2018 14:52:29

    description and fix my mistakes? Failing that, is there a way to delete that file from the database so I can add it again?
    Use the wiki and read up on the addfiles and delfiles commandline utilities. much easier than using the ;upload command once mastered.
    My bbs utils archive has several tools that make adding files easily and posting new files announcements as well. At the leastthey can be used as a example for your own efforts. You can get them here: https://synchronetbbs.o rg/index.php/downloads/download/6-sysop/148-bbs-utils-11 2 - that should be the latest version but if you are comfortable with git here is the github link: https://github.com/fstltna/bbs_utils

    Git has the advantage you can get the updates as they come out without needing to install any upgrades, etc...

    Marisa
    --- https://AmigaCity.xyz - Portal for the Amiga - More than 2,600 free DLs --- https://AmigaCityLaptops.com - Laptops & Handhelds that run AmigaOS
    --- https://AmigaCity.xyz/radio.html - Amiga game music 24/7
    þ Synchronet þ Amiga City - The BBS for the Amiga - more than 2,500+ files


    I tried your perladd.pl script, first copying it to /sbbs/exec as perladd.md recommended, using the command "./perladd linux long". It never prompted me for descriptions. What it did do was create 8.3 symlinks to every file in my exed directory inside my /data/dirs/linux directory. That's kind of fun, but not quite what I expected to happen. :)

    ---
    þ Synchronet þ COFFEE
  • From Charlie@VERT/COFFEE to Marisag on Tuesday, March 06, 2018 15:23:05
    Marisa:

    I got perladd.pl to work. I had to copy it to my actual files directory, in this case /sbbs/data/dirs/linux/ and had to change the default editor to one that I have installed to be able to enter descriptions.

    Question: why does it add the original (long or short) filename twice to the beginning of the description for every file it adds?

    -Charlie

    ---
    þ Synchronet þ COFFEE