home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   MBSE      The Linux/FreeBSD MBSE BBS Support Echo      2,445 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 406 of 2,445   
   Gert Andersen to Vince Coen   
   Make mbse post a text file   
   15 Oct 12 09:25:24   
   
    * Reply to message originally in area CarbonArea   
      
   Hello Vince!   
      
   Sun Oct 14 2012, Vince Coen wrote to Gert Andersen:   
      
    VC>>> 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.   
      
    VC>OK, I think I see the problem, let me look at my setup .....   
      
    VC>Look at your etc/monthly script and see if it looks similar to mine:   
      
    VC>--------------------------   
    VC>#!/bin/sh   
    VC>#   
    VC># MBSE BBS Monthly - Should be run at the first of the month at 00:10   
    VC>#   
    VC># $Id: monthly,v 1.3 2004/06/01 19:33:28 mbse Exp $   
    VC>MBSE_ROOT=/opt/mbse;export MBSE_ROOT   
      
    VC>if [ "$MBSE_ROOT" = "" ]; then   
    VC>   export MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print    
    VC>$6}'`   
    VC>fi   
    VC>#if [ "`id -un`" != "mbse" ] ; then   
    VC>#   echo "Must be run by user 'mbse'"   
    VC>#   exit 1   
    VC>#fi   
      
    VC># While the system is on UPS battery power, don't start maintenance   
    VC>#   
    VC>while [ -f $MBSE_ROOT/var/sema/upsalarm ]; do   
    VC>   sleep 60   
    VC>done   
    VC>$MBSE_ROOT/bin/mbfido notify -quiet   
    VC>$MBSE_ROOT/tmp/runturqstat.sh   
      
    VC>--------------------------   
      
    VC>It's the last two lines.   
      
    VC>This is forcing the programs to run under the settings for $MBSE_ROOT   
      
    VC>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)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca