Subj : Correct BAJA Command
To   : DesotoFireflite
From : MRO
Date : Wed Dec 13 2017 03:53 pm

 Re: Correct BAJA Command
 By: DesotoFireflite to All on Wed Dec 13 2017 02:06 pm

> Need some help on a baja compare statement. I want to compare a current
> users name (Handle) with the last entry of a file im keeping created by
> baja.

> I'll use me as an example

> What I want is if I was the last entry "Desotofireflite" in the log file
> called call.dat, I want it to do nothing, but if I wasn't the last entry in
> the call.dat, I want it to write to the call.dat my name. My problems is I
> don't know how to compare a handle to the last entry of a file. My guess
> would be

> COMPARE_ARS Handle c:\sbbs\data\call.dat
> If True
> Goto end
> end_if

> FOPEN FILE O_WRONLY|O_CREAT|O_APPEND "%Jcalls.dat"

> :end


none  of this code is correct and your fopen file is doing nothing.

you are better off doing a batchfile using the tail program and then getting an
error lvl after using the file or grep command on a temporary file created by
tail. you will need win32 unix programs,btw.

17 years ago i could seek into a file and load it up into a string that you
could read with baja but i've forgotten a lot of that shit.
---
� Synchronet � ::: BBSES.info - free BBS services :::