Subject: trxset 0.6 (FIDONET time synchronizer)
From: [email-masked] (Matthias Gmelch)
Date: Sat, 2 Apr 1994 21:25:42 GMT
Newsgroups: comp.os.linux.announce

hi, i have uploaded trxset 0.6 to

ftp.cs.tu-berlin.de:/pub/linux/Local/sources/network/mail

here is my readme:

/*
 * README
 *
 * this file belongs to the trxset program, which can be distributed under
 * the terms of the GNU gerneral public license (see COPYING for details).
 *
 * rasca gmelch ([email-masked]), berlin 1994
 */

readme for trxset 0.6
=====================

  hello FIDO and LINUX folks :)

what is TRXSET?

i wrote trxset to get the ability to synchronize my system time with
the system time of my fido-boss computer, because he has a very exact
clock :)

this program is designed for the ifmail package by Eugene Crosser. it
searches through the logfile of ifcico and looks for a tranx line of
a specified node (trxset 0.6 should also support the logfile of the
new bt 2.59 port by Louis Lagendijk).
if it founds such a line, it will calculate the time difference between
your system and the other node and then it will adjust your system time
accordingly.

DO NOT invoke trxset twice between two connections with the specified
remote system during the time range you have defined in config.h
(MAXAGE)!!!

i don't know about time zone handling under unix, so i do not mind it..

improvements would be fine..

installation:
-------------

- edit *config.h* to adjust the defaults to your system and say "make"..
- move the binary to e.g. /usr/local/sbin.
- and start it after every polling of the system you want to adjust
  your system time. you must be root when invoking "trxset" or you
  set it to suid root (-> permissions -> man chmod).
- if you want also change your CMOS time, use "/etc/clock -w" for this.

return codes:
-------------

0	all works fine, system time is adjusted
1	can't open logfile
2	can't find specified remote system in logfile
3	time difference between the 2 system is to big
4	you are not the superuser, so time change is not allowed
5	found entry in the logfile is to old or has no TRANX info
6	wrong parameter when invoking

bugs:
-----

i've tested trxset with the ifmail packages 2.0 and 2.1 by eugene crosser.
ifmail 2.1 has a bug concerning the remote time entry in the logfile,
so you have to use the ifmail-patch-2.1a for the 2.1 version.
for me it works fine, but perhaps there are many bugs :-) nevertheless
remember: this program works only with the ifcico logfile and the bt
2.59 logfile.. you can't use trxset with UUCP or other mailers..

changes:
--------

0.5 -> 0.6
	the logfile format of the tranx-line in eugene's ifcico 1.1
	changed so i adopted my trxset to support the new format.
	edit "config.h" to define the right ifcico version you work
	with..
	some code changes in date.c and search.c.
	added support of the binkley term 2.59 port by Louis Lagendijk,
	not very well tested!

0.4 -> 0.5
	syslogd ouput seems to work now correct, but don't ask me why
	i had to change the source in this form, i've found it by
	"try and error" :-)
	nevertheless there is one strange behavior: when invoking the
	first time, only the *first* "syslog(.." line is shown..??

0.3 -> 0.4
	syslogd facility added :)
	use "-v" to see something when invoking from the comand line,
	because default is now "not verbose" but messages for the syslogd.
	syslogd output seems to be not correct... why?

ciao
 rasca

fidoNet : Rasca Gmelch, 2:2410/305.4
interNet: [email-masked]
linuxNet: [email-masked]