TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Gert Andersen
from: Vince Coen
date: 2012-10-14 18:02:38
subject: Make mbse post a text file

Hello Gert!

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

 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.

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)
SEEN-BY: 3/0 633/267 640/954 712/0 313 620 848 953
@PATH: 250/1 261/38 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.