• mutil and mutil.ini / mysticbbs environment variable?

    From Björn Wiberg@2:201/137 to g00r00 on Sun Jan 23 21:29:45 2022
    Hello g00r00!

    If I run mutil from another directory than the one with mutil.ini in it, mutil complains about not being able to find mutil.ini, despite having the mysticbbs environment variable set (pointing to the base Mystic directory with mutil.ini in it):

    bbs@glimmer:~$ set | grep mysticbbs
    mysticbbs=/home/bbs/mystic

    bbs@glimmer:~$ mutil -run MergeNodeLists

    Load configuration Missing file FATAL

    From /home/bbs/mystic/logs/errors.log:

    2022.23.01 21:24:46 MUTIL 000 Invalid INI file: mutil.ini

    Would it be possible for mutil to observe the mysticbbs environment variable and look for mutil.ini (or any other INI file without a path specified on the command line) there?

    Thanks in advance!

    Best regards
    Björn

    --- Mystic BBS v1.12 A48 2022/01/19 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Wed Feb 2 14:25:02 2022
    If I run mutil from another directory than the one with mutil.ini in it, mutil complains about not being able to find mutil.ini, despite having
    the mysticbbs environment variable set (pointing to the base Mystic directory with mutil.ini in it):

    Sure! I can't think of a reason why I shouldn't do that...

    I'll make it so if you don't supply any INI filename on the command line, it will first look in the current directory you are running from for mutil.ini and then check for 'mysticbbs' environment variable path + mutil.ini!

    I'll put that in the build I am going to put out later today give it a shot when you can! :)

    ... When cheese gets its picture taken, what does it say?

    --- Mystic BBS v1.12 A48 2022/01/28 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Wed Feb 2 21:09:52 2022
    Hello g00r00!

    Thank you for your reply!

    On 02 Feb 2022, g00r00 said the following...
    If I run mutil from another directory than the one with mutil.ini in mutil complains about not being able to find mutil.ini, despite havin

    I'll put that in the build I am going to put out later today give it a shot when you can! :)

    Thanks a lot! Sounds great! I'll try it out and let you know the results!

    Best regards
    Björn

    --- Mystic BBS v1.12 A48 2022/01/28 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Björn Wiberg@2:201/137 to g00r00 on Wed Feb 2 21:53:36 2022
    Hello again, g00r00!

    On 02 Feb 2022, Björn Wiberg said the following...
    mutil complains about not being able to find mutil.ini, despite

    I'll put that in the build I am going to put out later today give it shot when you can! :)

    Thanks a lot! Sounds great! I'll try it out and let you know the results!

    I just tested this, but noticed the following --

    1) When specifying a path to an INI file, mutil appears to fail to find mystic.dat unless it is located in the current working directory:

    bbs@glimmer:~$ mutil /mnt/bbs/mystic/maint.ini
    Load configuration Missing MYSTIC.DAT FATAL 2022.02.02 21:43:23 MUTIL 000 Cannot read MYSTIC.DAT

    Would it be possible for mutil to look for mystic.dat (too) in the directory specified by the mysticbbs environment variable if it cannot find it in the current directory?

    2) Would it be possible to extend this "looking for INI file" to other INI files than mutil.ini?

    bbs@glimmer:~$ mutil maint.ini
    Load configuration Missing file FATAL 2022.02.02 21:41:08 MUTIL 000 Invalid INI file: maint.ini

    Here I would have wished for mutil to look for maint.ini in the current directory, and if it didn't find it there, to look for it in the directory specified by the mysticbbs environment variable.

    Obviously, this would/should only apply to INI file names without a path (i.e. only to INI file names not containing any backslashes or slashes).

    As usual, many thanks in advance! =)

    Best regards
    Björn

    --- Mystic BBS v1.12 A48 2022/02/02 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)