[nos-bbs] Changing JNOS log file name
Boudewijn (Bob) Tenty
bobtenty at gmail.com
Tue Sep 30 04:33:20 EDT 2014
Your welcome.
The log only contains a time stamp what is a little bit nasty because
you have no point of reference
anymore in the log name or file creation date so I fixed that by adding
Day, Month and Year to the time stamp.
Look in main.c for the line..
fprintf (fp, "%9.9s", cp + 11);
This is around line 1112 in function nos_log(), 5 lines below the
earlier modification and I modified it to...
fprintf (fp, "%.24s", cp); /* 30Sep2014, Boudewijn
VE3TOK, added Day Month Year to time stamp */
Recompile and a full date stamp will be added to each entry in nos.log
73,
Bob VE3TOK
On 14-09-29 12:05 PM, Wm Lewis wrote:
> Thanks, Bob.
>
> That seems to have done the trick.
>
> Bill
> KG6BAJ
>
> ------------------------------------------------------------------------
> Date: Sun, 28 Sep 2014 05:45:39 -0400
> From: bobtenty at gmail.com
> To: nos-bbs at tapr.org
> Subject: Re: [nos-bbs] Changing JNOS log file name
>
>
> Yes that is possible, I changed the name to "nos.log"
>
> Open main.c of the source with an editor and look for the line....
>
> sprintf (ML, "%s/%2.2s%3.3s%2.2s", LogsDir, cp + 8, cp + 4, cp + 22);
>
> - Around line 1101 in function nos_log() -
>
> I changed it to:
>
>
> /* sprintf (ML, "%s/%2.2s%3.3s%2.2s", LogsDir, cp + 8, cp + 4, cp
> + 22); */
>
> sprintf(ML, "%s/%s", LogsDir, "nos.log"); /* 28Sep2014,
> Boudewijn(Bob) VE3TOK, changed log name to nos.log */
>
>
> Recompile!
>
> 73,
>
> Bob VE3TOK
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20140930/e2892883/attachment.html>
More information about the nos-bbs
mailing list