• Make mbse post a text file

    From Vince Coen@2:250/1 to Gert Andersen on Fri Oct 12 23:58:09 2012
    Hello Gert!

    04 Oct 12 10:41, you wrote to me:

    Do any one of the mbse user could make mbmsg to get luck to post a
    text file to a echo. I have tried if i could get and make mbnsg
    post a text file to the netmail for to make it as a auto posting
    but only I got was error on the posting.

    The sysop (but not a bbs user) can post using mbmsg, I use the
    same for my monthly rules and stats here and that is done via a
    cron job.

    Need to see the details?

    I got it to work by run manually script file but the crontab runs test
    say it not can find mbmsg or run mbmsg, so may I shall try to use the
    same commands as mbout is running or take some commands from the /opt/etc/maint file so mbse and the linux know where and how to run
    mbmsg. Like $MBSE_ROOT/bin/mbmsgs post ......... (rest of the mbmsg commands).


    Have you checked your paths and others eg, set | less ?




    Vince

    --- Linux/Mbse/GoldED+/LNX 1.1.5-b20120229
    * Origin: Air Applewood, The Linux Gateway to the UK (2:250/1)
  • From Gert Andersen@2:230/150 to Vince Coen on Sat Oct 13 10:45:18 2012
    * Reply to message originally in area CarbonArea

    Hello Vince!

    Fri Oct 12 2012, Vince Coen wrote to Gert Andersen:


    Do any one of the mbse user could make mbmsg to get luck to post a
    text file to a echo. I have tried if i could get and make mbnsg
    post a text file to the netmail for to make it as a auto posting
    but only I got was error on the posting.

    The sysop (but not a bbs user) can post using mbmsg, I use the
    same for my monthly rules and stats here and that is done via a
    cron job.

    Need to see the details?

    I got it to work by run manually script file but the crontab runs test
    say it not can find mbmsg or run mbmsg, so may I shall try to use the
    same commands as mbout is running or take some commands from the
    /opt/etc/maint file so mbse and the linux know where and how to run
    mbmsg. Like $MBSE_ROOT/bin/mbmsgs post ......... (rest of the mbmsg
    commands).


    Have you checked your paths and others eg, set | less ?

    Yes that have I done and it is only while the crontab shall run the scripts the
    problem comes and if I run the script file manually is there no problem.


    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: * One step from heaven is not enough * (2:230/150)
  • From Rj Clay@1:120/419 to Gert Andersen on Sat Oct 13 07:19:16 2012
    Gert,

    12 Oct 12 23:58, Vince Coen wrote to you:

    Like $MBSE_ROOT/bin/mbmsgs post ......... (rest of the mbmsg commands).

    And along with what Vince asked; is that "$MBSE_ROOT" actually set correctly in the script? There are multiple ways to ensure that is done, but it does need be there...


    Jame

    --- GoldED+/LNX 1.1.5--b20111217
    * Origin: RJC eeePC (1:120/419)
  • From Gert Andersen@2:230/150 to Rj Clay on Sun Oct 14 13:27:32 2012
    * Reply to message originally in area CarbonArea

    Hello Rj!

    Sat Oct 13 2012, Rj Clay wrote to Gert Andersen:

    * Forwarded from area 'MBSE'
    Gert,

    12 Oct 12 23:58, Vince Coen wrote to you:

    Like $MBSE_ROOT/bin/mbmsgs post ......... (rest of the mbmsg commands).

    And along with what Vince asked; is that "$MBSE_ROOT" actually set
    correctly in the script? There are multiple ways to ensure that is
    done, but it does need be there...

    In my mbse .profile file have I this:
    export PATH=$HOME/bin;$PATH
    export MBSE_ROOT=$HOME

    So I could use in my script
    $PATH/mbmsg post .........


    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: The KofoBBS at http://www.kofobbs.dk (2:230/150)
  • From Vince Coen@2:250/1 to Gert Andersen on Sun Oct 14 18:02:39 2012
    Hello Gert!

    13 Oct 12 10:45, you wrote to me:

    Have you checked your paths and others eg, set | less ?

    Yes that have I done and it is only while the crontab shall run the
    scripts the problem comes and if I run the script file manually is
    there no problem.

    OK, I think I see the problem, let me look at my setup .....


    Look at your etc/monthly script and see if it looks similar to mine:

    --------------------------
    #!/bin/sh
    #
    # MBSE BBS Monthly - Should be run at the first of the month at 00:10
    #
    # $Id: monthly,v 1.3 2004/06/01 19:33:28 mbse Exp $
    MBSE_ROOT=/opt/mbse;export MBSE_ROOT

    if [ "$MBSE_ROOT" = "" ]; then
    export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'` fi
    #if [ "`id -un`" != "mbse" ] ; then
    # echo "Must be run by user 'mbse'"
    # exit 1
    #fi

    # While the system is on UPS battery power, don't start maintenance
    #
    while [ -f $MBSE_ROOT/var/sema/upsalarm ]; do
    sleep 60
    done
    $MBSE_ROOT/bin/mbfido notify -quiet
    $MBSE_ROOT/tmp/runturqstat.sh

    --------------------------

    It's the last two lines.

    This is forcing the programs to run under the settings for $MBSE_ROOT

    Otherwise the programs will fail.

    Vince

    --- Linux/Mbse/GoldED+/LNX 1.1.5-b20120229
    * Origin: Air Applewood, The Linux Gateway to the UK (2:250/1)
  • From Gert Andersen@2:230/150 to Vince Coen on Mon Oct 15 09:25:24 2012
    * Reply to message originally in area CarbonArea

    Hello Vince!

    Sun Oct 14 2012, Vince Coen wrote to Gert Andersen:

    Have you checked your paths and others eg, set | less ?

    Yes that have I done and it is only while the crontab shall run the
    scripts the problem comes and if I run the script file manually is
    there no problem.

    OK, I think I see the problem, let me look at my setup .....

    Look at your etc/monthly script and see if it looks similar to mine:

    --------------------------
    #!/bin/sh
    #
    # MBSE BBS Monthly - Should be run at the first of the month at 00:10
    #
    # $Id: monthly,v 1.3 2004/06/01 19:33:28 mbse Exp $
    MBSE_ROOT=/opt/mbse;export MBSE_ROOT

    if [ "$MBSE_ROOT" = "" ]; then
    export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print
    $6}'`
    fi
    #if [ "`id -un`" != "mbse" ] ; then
    # echo "Must be run by user 'mbse'"
    # exit 1
    #fi

    # While the system is on UPS battery power, don't start maintenance
    #
    while [ -f $MBSE_ROOT/var/sema/upsalarm ]; do
    sleep 60
    done
    $MBSE_ROOT/bin/mbfido notify -quiet
    $MBSE_ROOT/tmp/runturqstat.sh

    --------------------------

    It's the last two lines.

    This is forcing the programs to run under the settings for $MBSE_ROOT

    Otherwise the programs will fail.

    Yes it is near to the same except your first lines command and 2 last lines commands, my 2 last lines is used as the defailt for mbindex.
    I got my crontab to work now with change its command line to be using:
    export MBSE_ROOT=/opt/mbse; $MBSE_ROOT/etc/hello.sh
    and it look to work that way adn I added in my hello.sh last to use $HOME/bin/mbmsg post ....

    I test it out and it works the text file is been posted as it shall by the cron
    now.

    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: * One bird in hand is better than 10 on the roof * (2:230/150)
  • From Vincent Coen@2:250/1 to All on Wed Apr 13 15:39:48 2022
    Hello All!

    I want to set up a second bbs system on a Raspberry pi to handle a simple-ish service namely for ELIST.

    As my main system uses the default of 24554 I have port forwarding set on the router to the main system but need to do the same for port 24555 for the Pi.

    Question how do I change the mbse set up to use this change of port as I cannot
    find anywhere where this is defined.


    Any one have a clue to finding this and changing it ?


    Vincent

    --- Mageia Linux v8 X64/Mbse v1.0.8/GoldED+/LNX 1.1.5-b20180707
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Louis Northmore@2:250/8.1 to Vincent Coen on Wed Apr 13 17:09:46 2022
    //Hello Vincent,//

    on *4/13/2022* at *14:39:48* You wrote in area *MBSE*
    to *All* about *"Changing the Standard port number used"*.

    [snip]

    As my main system uses the default of 24554 I have port forwarding set on the router to the main system but need to do the same for port 24555 for the Pi.

    Question how do I change the mbse set up to use this change of port as I cannot
    find anywhere where this is defined.


    Any one have a clue to finding this and changing it ?

    Id be tempted to solve this just using the port forwarding. So just forward port 24555 > IPAddressOfPi > 24554

    If you are determined to change the ports for any configured services, MBSE uses inetd right?

    check out the setup.sh script - at the end of this it configures /etc/services which the inetd service uses.
    My first step would be to edit /etc/services then try a reboot and see if inetd/xinetd picks up the new service config.

    HTH

    Louis
    --- WinPoint 400.2
    * Origin: Another Random *WinPoint* Origin! (2:250/8.1)
  • From Vincent Coen@2:250/1 to Louis Northmore on Wed Apr 13 17:48:19 2022
    Hello Louis!

    Wednesday April 13 2022 17:09, you wrote to me:

    //Hello Vincent,//

    on *4/13/2022* at *14:39:48* You wrote in area *MBSE*
    to *All* about *"Changing the Standard port number used"*.

    [snip]

    As my main system uses the default of 24554 I have port
    forwarding set on the router to the main system but need to do
    the same for port 24555 for the Pi.

    Question how do I change the mbse set up to use this change of
    port as I cannot find anywhere where this is defined.


    Any one have a clue to finding this and changing it ?

    Id be tempted to solve this just using the port forwarding. So just
    forward port 24555 > IPAddressOfPi > 24554

    That should do it - thanks for reminding me.


    If you are determined to change the ports for any configured services,
    MBSE uses inetd right?

    check out the setup.sh script - at the end of this it configures /etc/services which the inetd service uses. My first step would be to
    edit /etc/services then try a reboot and see if inetd/xinetd picks up
    the new service config.

    Yes that is set for 24554 but I do not know what actually this does in relation
    to mbse.

    Documentation is a bit poor on this in the mbse docs.

    I will stick to your first idea - well at least until it doesn't work, that is.

    Vincent

    --- Mageia Linux v8 X64/Mbse v1.0.8/GoldED+/LNX 1.1.5-b20180707
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Alan Ianson@1:153/757 to Vincent Coen on Wed Apr 13 14:41:36 2022
    I want to set up a second bbs system on a Raspberry pi to handle a simple-ish service namely for ELIST.

    As my main system uses the default of 24554 I have port forwarding set on the router to the main system but need to do the same for port 24555 for the Pi.

    Change the binkp port in /etc/services to 24555 on that machine.

    Question how do I change the mbse set up to use this change of port as I cannot find anywhere where this is defined.

    I'm not sure if MBSE can be configured to use a different port.

    Any one have a clue to finding this and changing it ?

    Changing the port in /etc/services has worked for me in the past.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Vincent Coen@2:250/1 to Alan Ianson on Thu Apr 14 00:14:48 2022
    Hello Alan!

    Wednesday April 13 2022 14:41, you wrote to me:

    I want to set up a second bbs system on a Raspberry pi to handle a
    simple-ish service namely for ELIST.

    As my main system uses the default of 24554 I have port forwarding
    set on the router to the main system but need to do the same for
    port 24555 for the Pi.

    Change the binkp port in /etc/services to 24555 on that machine.

    Question how do I change the mbse set up to use this change of port
    as I cannot find anywhere where this is defined.

    I'm not sure if MBSE can be configured to use a different port.

    Any one have a clue to finding this and changing it ?

    Changing the port in /etc/services has worked for me in the past.

    Thanks done that as well.


    Vincent

    --- Mageia Linux v8 X64/Mbse v1.0.8/GoldED+/LNX 1.1.5-b20180707
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Sean Dennis@1:18/200 to Vincent Coen on Thu Apr 14 00:21:44 2022
    Hello Vincent,

    13 Apr 22 15:39, you wrote to All:

    Any one have a clue to finding this and changing it ?

    Change the port number in /etc/services and restart (x)inetd.

    That's it. :)

    -- Sean

    ... A bike in town keeps running me over. It's a vicious cycle.
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Outpost BBS (MBSE BBS Dev Team) (1:18/200)
  • From Andrew Leary@1:320/219 to Vincent Coen on Thu Apr 14 00:32:16 2022
    Hello Vincent!

    13 Apr 22 15:39, you wrote to all:

    I want to set up a second bbs system on a Raspberry pi to handle a simple-ish service namely for ELIST.

    As my main system uses the default of 24554 I have port forwarding set
    on the router to the main system but need to do the same for port
    24555 for the Pi.

    Question how do I change the mbse set up to use this change of port as
    I cannot find anywhere where this is defined.

    Any one have a clue to finding this and changing it ?

    Change the binkp entry in /etc/services on your Raspberry Pi to 24555/tcp. Then restart (x)inetd and you should be done. The other option is to have your router forward incoming for port 24555 to port 24554 on the RPi.

    Regards,

    Andrew

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)