• Make mbse post a text file

    From Gert Andersen@2:230/150 to All on Fri Sep 28 18:34:56 2012
    Hello All!

    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.

    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: http://www.kofobbs.dk (2:230/150)
  • From Rj Clay@1:120/419 to Gert Andersen on Sat Sep 29 10:52:48 2012
    Gert,

    28 Sep 12 18:34, you wrote to all:

    Do any one of the mbse user could make mbmsg to get luck to post a
    text file to a echo.

    Yep; netmails (used for things like netmail to another systems Areafix) and echomail (automated postings).



    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.

    What error, on which version of MBSE?



    Jame

    --- GoldED+/LNX 1.1.5--b20111217
    * Origin: RJC eeePC (1:120/419)
  • From Gert Andersen@2:230/150 to Rj Clay on Sat Sep 29 18:03:44 2012
    * Reply to message originally in area CarbonArea

    Hello Rj!

    Sat Sep 29 2012, Rj Clay 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.

    Yep; netmails (used for things like netmail to another systems
    Areafix) and echomail (automated postings).

    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.

    What error, on which version of MBSE?

    I am just out for could post a text file to my fido uplink in netmail by a script file so it create a netmail 1 or 2 times monthly, but the command I have
    tried manually and by the script file wouldn't work by mbmsg posting.

    mbmsg post "aka + name" 0 "Hello" /opt/mbse/hello.txt ...
    So I then ask for the real command line there is work, so mbmsg can use it well
    and write both nodes aka and name + subject and put attrib functions as pvt and
    maybe k/s.


    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 Sep 29 18:10:10 2012
    Gert.

    29 Sep 12 18:03, you wrote to me:

    What error, on which version of MBSE?

    I am just out for could post a text file to my fido uplink in netmail
    by a script file so it create a netmail 1 or 2 times monthly,

    mbmsg post "aka + name" 0 "Hello" /opt/mbse/hello.txt ...
    So I then ask for the real command line there is work,

    This is an example from a script I use to post an Areafix request to my uplink:

    -----<snip>------------------------------------------------ TO="Areafix@f544.n120.z1.fidonet.org"
    SUBJ=PassWord
    TXTMSG=$VARDIR/f544/msg.txt

    $BINDIR/mbmsg post $TO 2 $SUBJ $TXTMSG cp -----<snip>------------------------------------------------

    "2" is the area number.




    Jame


    --- GoldED+/LNX 1.1.5--b20111217
    * Origin: RJC eeePC (1:120/419)
  • From Gert Andersen@2:230/150 to Rj Clay on Sun Sep 30 10:17:24 2012
    * Reply to message originally in area CarbonArea

    Hello Rj!

    Sat Sep 29 2012, Rj Clay wrote to Gert Andersen:

    What error, on which version of MBSE?

    I am just out for could post a text file to my fido uplink in netmail
    by a script file so it create a netmail 1 or 2 times monthly,

    mbmsg post "aka + name" 0 "Hello" /opt/mbse/hello.txt ...
    So I then ask for the real command line there is work,

    This is an example from a script I use to post an Areafix request to
    my
    uplink:

    -----<snip>------------------------------------------------
    TO="Areafix@f544.n120.z1.fidonet.org"
    SUBJ=PassWord
    TXTMSG=$VARDIR/f544/msg.txt

    $BINDIR/mbmsg post $TO 2 $SUBJ $TXTMSG cp
    -----<snip>------------------------------------------------

    "2" is the area number.

    I could try to make my script file simular this and try it out and if my fido netmail not is moving from its number should it be 4.
    -------<snip>-------
    TO="Benny_Pedersen@f0.m230.z2.fidonet.org"
    SUBJ=Hello
    TXTMSG=$VARDIR/f0/hello.txt

    $BINDIR/mbmsg post $TO 4 $SUBJ $TXTMSG pvt
    -------<snip>--------


    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: KofoBBS at ftp://fido1.kofobbs.net (2:230/150)
  • From Rj Clay@1:120/419 to Gert Andersen on Sun Sep 30 09:14:00 2012
    Gert,

    30 Sep 12 10:17, you wrote to me:
    I could try to make my script file simular this and try it out and if
    my fido netmail not is moving from its number should it be 4.

    After changing that "pvt" to just "p", that should work...


    -------<snip>-------
    TO="Benny_Pedersen@f0.m230.z2.fidonet.org"
    SUBJ=Hello
    TXTMSG=$VARDIR/f0/hello.txt

    $BINDIR/mbmsg post $TO 4 $SUBJ $TXTMSG pvt
    -------<snip>--------

    Don't forget that the last parameter for that command should be either letters (in your example, it should be "p") or a dash ("-").



    Jame




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

    Hello Rj!

    Sun Sep 30 2012, Rj Clay wrote to Gert Andersen:

    30 Sep 12 10:17, you wrote to me:
    I could try to make my script file simular this and try it out and if
    my fido netmail not is moving from its number should it be 4.

    After changing that "pvt" to just "p", that should work...


    -------<snip>-------
    TO="Benny_Pedersen@f0.m230.z2.fidonet.org"
    SUBJ=Hello
    TXTMSG=$VARDIR/f0/hello.txt

    $BINDIR/mbmsg post $TO 4 $SUBJ $TXTMSG pvt
    -------<snip>--------

    Don't forget that the last parameter for that command should be
    either
    letters (in your example, it should be "p") or a dash ("-").

    Yes and i have tried it out and used cp at the last command.


    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 Gert Andersen@2:230/150 to Rj Clay on Tue Oct 2 10:36:38 2012
    Hello Rj!

    Sun Sep 30 2012, Rj Clay wrote to Gert Andersen:

    Gert,

    30 Sep 12 10:17, you wrote to me:
    I could try to make my script file simular this and try it out and if
    my fido netmail not is moving from its number should it be 4.

    After changing that "pvt" to just "p", that should work...


    -------<snip>-------
    TO="Benny_Pedersen@f0.m230.z2.fidonet.org"
    SUBJ=Hello
    TXTMSG=$VARDIR/f0/hello.txt

    $BINDIR/mbmsg post $TO 4 $SUBJ $TXTMSG pvt
    -------<snip>--------

    Don't forget that the last parameter for that command should be
    either
    letters (in your example, it should be "p") or a dash ("-").

    Then if it shall work by cron and crontab has there too to be some export command for mbse_root else can the cron not found out of use mbmsg command. This can then be in crontab or in the script file. It can be taken from mbse maint files from /opt/mbse/etc/.


    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 Vince Coen@2:250/1 to Gert Andersen on Tue Oct 2 22:01:30 2012
    Hello Gert!

    28 Sep 12 18:34, you wrote to All:

    Hello All!

    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?



    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 Thu Oct 4 10:41:02 2012
    * Reply to message originally in area CarbonArea

    Hello Vince!

    Tue Oct 02 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).



    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: http://www.kofobbs.dk (2:230/150)
  • 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)