• Re: Success: Post multiple text files with changing subject

    From goto_KCM@21:1/218 to Avon on Mon Sep 20 17:51:03 2021
    If you wanted to zip them up and upload to Agency I can hatch them out
    if you wanted :)

    Hey Avon, i uploaded a zip with the two shell scripts and the template ini on your Agency BBS.

    The scripts get the textfiles from a FTP server and post them afterwards.

    Usage:
    Copy both shell scripts to the Mystic BBS directory. Create the directories "news", "old_news", "templates" and "newstemp".

    Copy the template.ini file into the templates directory and edit the file to match your needs.

    Now edit the "get_news_from_ftp.sh" and replace the URL of the FTP Server, username and password.

    Now create an event in Mystic BBS that runs hourly and executes the "/mystic/get_news_from_ftp.sh" to get the text files from the FTP Server.

    Create another event that is type semaphore and waits for a file called "news.txt" and runs the script "/mystic/post_news.sh".

    Finished.

    Now when the first task is run, the textfiles are moved from the FTP server
    to the "/mystic/news" dir and the semaphore file "news.txt" is created.
    Then the second event is triggered and for every text file in the news dir a ini file is created to run mutil with it.

    So, hope this helps.

    Regards
    Andreas

    -=Kautzner-Computer-Museum=-
    zahrl.ddns.net:2023
    https://kcm.or.at

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: KCM BBS (21:1/218)
  • From paulie420@21:2/150 to Avon on Fri Sep 24 07:05:01 2021
    Hey Avon, i uploaded a zip with the two shell scripts and the templat ini on your Agency BBS.

    Thank you I will look to hatch this out in the coming days. :)

    I'll watch out for it, thanks guys...



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2021/08/29 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)