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.

   ELIST      [ADM] ELIST Conference      7,279 messages   

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

   Message 5,685 of 7,279   
   Sean Dennis to Nigel Reed   
   Odd-day script   
   09 Apr 23 21:00:15   
   
   CHRS: CP437 2   
   MSGID: 1:18/200@fidonet 63c32ec5   
   PID: MBSE-BBS 1.0.8.3 (FreeBSD-amd64)   
   TZUTC: -0400   
   TID: MBSE-FIDO 1.0.8.3 (FreeBSD-amd64)   
   -=> Nigel Reed wrote to All <=-   
      
    NR> Easily mitigated. Just run a cronjob each month to call a script   
    NR> that'll check an incremental file. When it reaches 10 complete the   
    NR> script and reset to 1 otherwise increment.   
      
   I cribbed this script together with help to run every three days when    
   NOAA updates their space weather forecast.  The daily cron job runs this at   
   0900 ET:   
      
   ===   
   #!/bin/bash   
      
   # The following is from:   
   #    
   https://askubuntu.com/questions/829408/execute-bash-script-literally-after-ever   
   y-3-days   
   # This is to account for actually running every three days   
   # correctly since cron can't do it.   
      
   # Minimum delay between two script executions, in seconds.    
   seconds=$((60*60*24*3))   
      
   # Compare the difference between this script's modification time stamp    
   # and the current date with the given minimum delay in seconds.    
   # Exit with error code 1 if the minimum delay is not exceeded yet.   
   if test "$(($(date "+%s")-$(date -r "$0" "+%s")))" -lt "$seconds" ; then   
       echo "This script may not yet be started again."   
       exit 1   
   fi   
      
   # Store the current date as modification time stamp of this script file   
   touch -m -- "$0"   
      
   # Insert your normal script here:   
   MBSE_ROOT=/opt/mbse;export MBSE_ROOT   
   cd $MBSE_ROOT/temp   
   lynx -dump "https://services.swpc.noaa.gov/text/3-day-forecast.txt" > forecast   
   $MBSE_ROOT/bin/mbmsg post All 155 "3-Day Space Weather Forecast" ./forecast -    
   -quiet   
   ### Kill off the text file   
   rm -f ./forecast   
   ===   
      
   I haven't tried using this script under sh yet.   
      
   This might be helpful.   
      
   -- Sean   
      
   ... Inside every large problem is a small problem trying to get out.   
   --- MMail/FreeBSD   
    * Origin: Outpost BBS * Johnson City, TN (1:18/200)   
   SEEN-BY: 1/110 123 15/0 18/200 90/1 105/81 106/201 123/131 129/305   
   SEEN-BY: 153/7715 218/700 226/30 227/114 229/110 111 112 113 206 307   
   SEEN-BY: 229/317 400 424 426 428 470 664 700 266/512 282/1038 292/854   
   SEEN-BY: 317/3 320/219 322/757 342/200 396/45 460/58 633/280 712/848   
   PATH: 18/200 229/426   
      

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


(c) 1994,  bbs@darkrealms.ca