|    TUXPOWER    |    Advocacy for the Linux operating system    |    1,237 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 48 of 1,237    |
|    Jame Clay to All    |
|    post2tuxpower.sh - v0.2 for BBBS    |
|    10 Jun 11 17:53:20    |
   
   #!/bin/bash   
   # post2tuxpower.sh v0.2   
   # Copyright 2011 Robert James Clay , GPL2+   
   # Post the contents of a file as a message to the TUXPOWER echo   
   # on a BBBS system. Uses the text2bbbs.sh script.   
   #   
      
   BBBSDIR=/opt/bbbs   
   SCRIPTS=$BBBSDIR/scripts   
   WORKDIR=$SCRIPTS/tuxpower   
      
   print-usage ()   
   {   
    echo   
    echo "Usage: post2tuxpower.sh PathAndFileName"   
    echo "PathAndFileNme: Path and filename to be posted to the conference."   
   }   
      
   # Get the path and name of the file to be posted   
   if [ -n "$1" ]   
   then   
    FILE=$1   
   else   
    echo "Script requires a path and file name..."   
    print-usage   
    exit 1   
   fi   
      
   cd $BBBSDIR   
      
   SUBJFILE=$WORKDIR/adm/subject.txt   
   FROMFILE=$WORKDIR/FromJame.txt   
      
   if [ -e $FILE ]; then   
      
    # If the script file is present, post it to the echo   
    $SCRIPTS/text2bbbs.sh os.linux.tuxpower $FILE $SUBJFILE $FROMFILE   
      
   fi   
      
   exit 0   
      
   --- BBBS/LiI v4.01 Flag   
    * Origin: Rocasa BBS (1:120/546)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca