home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

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

   Message 263,603 of 264,096   
   jayjwa to All   
   Re: Percent-Sign Prefix For System Messa   
   21 Oct 25 17:25:17   
   
   From: jayjwa@atr2.ath.cx.invalid   
      
   I use it in the rc.decnet switch from the Slack build for Linux   
   DECnet. Always liked those messages. Real computer sciency.   
      
   ## [Script data] -----------------------------------------------   
   ---------------   
   # Color codes for fancy output   
   readonly RED='\033[0;31m'                     # Error conditions   
   readonly GREEN='\033[0;32m'                   # Operation was successful   
   readonly BLUE='\033[0;34m'                    # Informational and other   
   readonly NC='\033[0m'                         # Shut off color output   
      
   # Error codes and constants. Mimic VMS-style info/warn/error messages   
   # "%" must be escaped due to it being used in a format expression below   
   readonly INFOINIT="%%DECNET-I-INIT, "   
   readonly INFORESTART="%%DECNET-I-RESTART, "   
   readonly INFOSTOP="%%DECNET-I-STOP, "   
   readonly ENOTSTOP="%%DECNET-E-STOP, "   
   readonly EFNOEXIST="%%DECNET-E-NOFILES, "   
   readonly EBNOEXIST="%%DECNET-E-NOBINARY, "   
   readonly EMODNOEXIST="%%DECNET-E-MODULE, "   
   readonly KMOD="decnet3"   
   readonly COMMAND=$1   
      
   ...   
      
   [ -r /etc/decnet.conf ] || {   
   	   # We can't do much without config files   
   	   printf "${RED}${EFNOEXIST}check config files' readability and   
   location${NC}\\n"   
   	   return 1   
   	}   
      
   and so on.   
      
   --   
   PGP Key ID: 781C A3E2 C6ED 70A6 B356  7AF5 B510 542E D460 5CAE   
          "The Internet should always be the Wild West!"   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca