AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BBS Support/Help/Discussion  <--  <--- Return to Home Page
   Networked Database  BBS Support/Help/Discussion   [55 / 1491] RSS
 From   To   Subject   Date/Time 
Message   Sean Dennis    All   Fixing the nodelist script   April 7, 2017
 8:26 PM *  

Hello All,

I finally figured out what I was doing wrong with the Micronet 
nodelist/infopack bash script.

So what I had to do was get the current day number of the current year:
DOY=$(date +%j)

Then, I had to get the last two digits of the day number:
DOY1=`echo "${DOY:(-2)}"`
(the backticks tell bash to run this as a command and store the output in the 
variable)

Here's where I screwed up.  I didn't perform the correct arithmetic (sp?) on 
the variable.  This is what I wound up doing to get the last Friday's DOY:
OLDDOY=`echo $((DOY1 - 8 ))`

Seems bash is like REXX in that no variable is typed and treated as a string 
unless you tell it otherwise.

That seemed to have fixed the problem.

Later,
Sean

--- GoldED+/LNX 1.1.5-b20160322
* Origin: Outpost BBS * Limestone, TN, USA (618:618/1)
---
 * Origin: Outpost BBS * Limestone, TN, USA (618:618/1)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BBS Support/Help/Discussion  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0139 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108