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.

   MAKENL_NG      MakeNL Next Generation.      1,725 messages   

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

   Message 1,301 of 1,725   
   mark lewis to Bj”rn Felten   
   Errorlevels   
   25 Nov 14 08:15:19   
   
    On Tue, 25 Nov 2014, Bj”rn Felten wrote to All:   
      
    BF>    Anyway, we can leave that be -- even if I doubt that there are   
    BF> that many systems out there that actually uses those error levels   
    BF> -- but one level I would like is for "Unchanged output file will   
    BF> NOT be submitted".   
      
   why not detect that in your script with diff or compare?   
      
   simplistic eg:   
   @echo off   
   set newhatch=no   
   rem set a non-changing name to hold our current netseg   
   rem myseg.cur is the current netseg that is published   
   iff not exist myseg.cur copy myseg.now myseg.cur   
   makenl                       ; output is myseg.now   
   diff myseg.cur myseg.now   
   if errorlevel 1 set newhatch=yes   
   if '%newhatch%' == 'no' goto end   
   rem diff says there's a difference between the files   
   rem so let's update the current one with the new one   
   copy myseg.now myseg.cur   
   rem and hatch it   
   hatch area whatever file myseg.cur desc "my new netseg" replace myseg.cur   
   rem all done!   
   :end   
      
      
   )\/(ark   
      
    * Origin:  (1:3634/12)   

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


(c) 1994,  bbs@darkrealms.ca