• The main script

    From Sean Dennis@1:18/200 to All on Thu Jun 18 19:34:54 2015
    Hello All,

    Here's the main script that I use to do the dirty work with my nodelist hatching:

    === Cut ===
    #!/bin/sh
    ###
    ### The Official Micronet Nodelist/Infopack
    ### Hatching Script (well, the main one)
    ###
    ### Updated 17 June 2015
    ###
    ### Tell the system where we're working from
    export MBSE_ROOT=/opt/mbse
    ###
    ### Create nodelist FILE_ID.DIZ
    cd $MBSE_ROOT/micronet/nodelist
    if [ -e "file_id.diz" ]; then
    rm file_id.diz
    fi
    if [ -e "micronet.zip" ]; then
    rm mininfo.zip
    fi
    source ./create_nodelist_fileid.sh
    ###
    ### Create nodelist ZIP archive
    zip -9 micronet.zip -z<file_id.diz micronet.* file_id.diz
    ###
    ### Copy the nodelist archive to put into the infopack
    cp micronet.zip ../infopack
    ###
    ### Create infopack FILE_ID.DIZ
    cd $MBSE_ROOT/micronet/infopack
    if [ -e "file_id.diz" ]; then
    rm file_id.diz
    fi
    if [ -e "mininfo.zip" ]; then
    rm mininfo.zip
    fi
    source ./create_infopack_fileid.sh
    ###
    ### Create infopack archive
    zip -9 mininfo.zip -z<file_id.diz micronet.* mn*.* l618rule.txt readme.now
    ###
    ### Copy files to /opt/mbse/tmp for processing
    cp *.zip $MBSE_ROOT/tmp
    ###
    ### Upload the infopack to my website first since MBFILE will move the file
    ### to the correct directory after it hatches it.
    ### (This is one line but GoldEd+ wrapped it)
    echo "user=username:password" | curl -K - -T ./mininfo.zip ftp://<ftpserver> ###
    ### Hatch out the nodelist first...
    cd $MBSE_ROOT/tmp
    export f="micronet.zip"
    export GROUP="min_list"
    export AKA="618:618/1"
    export DESC="Micronet Information Network nodelist for `date "+%A, %B %e, %Y"` (day `date +%j`)."
    export REPL="micronet.zip"
    export MAGIC="NONE"
    source $MBSE_ROOT/bin/single_hatch
    ###
    ### Hatch out the infopack now...
    cd $MBSE_ROOT/tmp
    export f="mininfo.zip"
    export GROUP="min_info"
    export AKA="618:618/1"
    export DESC="Micronet Information Network infopack for `date "+%A, %B %e, %Y"` (day `date +%j`)."
    export REPL="mininfo.zip"
    export MAGIC="NONE"
    source $MBSE_ROOT/bin/single_hatch
    ###
    ### We're done!
    === Cut ===

    --Sean

    ... My other computer is a 486.
    --- GoldED+/LNX 1.1.5-b20130910
    * Origin: Outpost BBS * Johnson City, TN, USA (1:18/200)