TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: All
from: Sean Dennis
date: 2015-06-18 19:35:04
subject: Final script

Hello All,

Here's the script I wrote that creates a TIC file and then calls a built-in 
MBSE utility to hatch the file:

=== Cut ===
#!/bin/sh

HATCHPWD="removed"
INBOUND=$MBSE_ROOT/var/inbound
HVERSION="1.0"


if [ "`id -un`" != "mbse" ]; then
    echo "This program may only be used by user 'mbse'"
    exit 1
fi

if [ "Password" == "${HATCHPWD}" ]; then
    echo "This script is not yet configured, first edit this script before 
use!"
    exit 1
fi

## Perform the actual hatching
FILE=$INBOUND/`$MBSE_ROOT/bin/mbseq`.tic
echo "Hatch" > $FILE
echo "Created Sean's MBSE Single File Hatch Script v$HVERSION"
>> $FILE
echo "Area $GROUP" >> $FILE
if [ "$REPL" != "NONE" ]; then
        echo "Replaces $REPL" >> $FILE
fi
if [ "$MAGIC" != "NONE" ]; then
        echo "Magic $MAGIC" >> $FILE
fi
echo "Origin $AKA" >> $FILE
echo "From $AKA" >> $FILE
echo "File $f" >> $FILE
echo "Fullname $f" >> $FILE
echo "Pth `pwd`" >> $FILE
echo "Desc $DESC" >> $FILE
echo "Pw $HATCHPWD" >> $FILE
echo -e "\n $F hatched!\n"

## Hatch the file out
$MBSE_ROOT/bin/mbfido tic
## Announce hatched file quietly
$MBSE_ROOT/bin/mbaff a -q
=== Cut ===

--Sean

... Behind every successful man stands an amazed woman.
--- GoldED+/LNX 1.1.5-b20130910
* Origin: Outpost BBS * Johnson City, TN, USA (1:18/200)
SEEN-BY: 18/200 19/33 34/999 90/1 116/18 120/331 123/500 128/187 140/1 218/700
SEEN-BY: 226/160 230/150 261/38 100 266/404 267/155 280/464 282/1031 1056
SEEN-BY: 292/907 908 320/119 340/400 393/68 396/45 633/267 640/384 712/848
SEEN-BY: 770/1 2320/105
@PATH: 18/200 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™.