diff --git a/Makefile b/Makefile index e6fe36d5..552d6446 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ VELOOBJ = velo.o velosim.o velodorn.o velodornier.o HDFROOT=/data/koenneck CC=cc EXTRA= -CFLAGS = -I$(HDFROOT)/include -Ihardsup -std1 -g -warnprotos -c +CFLAGS = -I$(HDFROOT)/include -Ihardsup -I. -std1 -g -warnprotos -c #CFLAGS = -I$(HDFROOT)/include -DFORTIFY -Ihardsup -g -std1 -warnprotos -c LIBS = -L$(HDFROOT)/lib -Lhardsup -lhlib -Ltecs -ltecsl -ltcl8.0 -lfor -lmfhdf -ldf \ $(HDFROOT)/lib/libjpeg.a -lz -lm -ll -lc diff --git a/commandlog.c b/commandlog.c index 12748631..675050e6 100644 --- a/commandlog.c +++ b/commandlog.c @@ -162,6 +162,7 @@ char pTime[80]; pSicsVariable pInst = NULL; char *pPtr = NULL; + SConnection *pIntern = NULL; if(fauto) { @@ -198,6 +199,23 @@ pInst->text,pTime); WriteToCommandLog("SYS>> ", pBueffel); } + + /* if a file to execute is configured, execute it */ + pPtr = NULL; + pPtr = IFindOption(pSICSOptions,"logstartfile"); + if(pPtr != NULL) + { + pIntern = SCCreateDummyConnection(pServ->pSics); + if(!pIntern) + { + return; + } + SCnoSock(pIntern); + SCSetRights(pIntern,usUser); + sprintf(pBueffel,"fileeval %s",pPtr); + InterpExecute(pServ->pSics,pIntern,pBueffel); + SCDeleteConnection(pIntern); + } } /*---------------------------------------------------------------------- AutoTask puts a time stamp into the auto log file any hour and diff --git a/danu.dat b/danu.dat index 989c7114..19a73d75 100644 --- a/danu.dat +++ b/danu.dat @@ -1,3 +1,3 @@ - 5438 + 5451 NEVER, EVER modify or delete this file You'll risk eternal damnation and a reincarnation as a cockroach!|n \ No newline at end of file diff --git a/doc/user/commandlog.htm b/doc/user/commandlog.htm index 13b944c9..807e4b11 100644 --- a/doc/user/commandlog.htm +++ b/doc/user/commandlog.htm @@ -7,7 +7,8 @@
The commandlog is a file where all communication with clients having user or manager privilege is logged. This log allows to retrace each -step of an experiment. This log is usually switched off and must be +step of an experiment. This log is normally configured in the startup +file or can be configured by the instrument manager. There exists a special command, commandlog, which allows to control this log file.