Privacy and Security Notice

Archived Messages for CLAS_OFFLINE@cebaf.gov: RECSIS in batch, and custom file names

RECSIS in batch, and custom file names

Mark M. Ito (marki@CEBAF.GOV)
Wed, 28 Jan 1998 17:30:15 -0500 (EST)

I've added three new tcl variables. These changes are in release-1-10.

lexit_pend
----------

This variable tells recsis to set lexit to true when the event loop is
exited, either on end-of-file, when the event count reaches the event
limit (if one is set), or when the run count reaches the run limit
(again if one is set).

There is a corresponding procedure in tcl/recsis_proc.tcl to set this
variable true. It is called "exit_pend" of course.

This makes it easier to run RECSIS in the background. For example to
run through 1000 events and exit put

go 1000
exit_pend

in your tcl init file. Invoke recsis from the command line with
something like

recsis -b -t your_init.tcl

The -b switch will prevent recsis from coming to the terminal for
input. If you were to use "exit" rather than "exit_pend", recsis would
exit immediately, without processing the 1000 events. "exit_pend" can
also be used from the recsis prompt as well (no -b switch in this
case). To run in background of course, you say something like

recsis -b -t your_init.tcl >& /dev/null &

and go to lunch.

log_file_name
-------------

If you want to set a custom name for your recsis log file, as opposed
to the default RE1234.LOG, you can use this variable, e. g.,

set log_file_name my_log_file.log

This variable is new and is in include/run_control.inc.

chist_filename
--------------

If you want to set a custom name for your hbook histogram file, as
opposed to the default re1234.rzn, you can use this variable, e. g.,

set chist_filename my_hbook_file.hbk

This variable is old and is in include/rhist.inc. The new thing is
having it linked to tcl.

Don't forget that in release-1-10, the crmess variable in hbook_init.F
should be declared to be character*200, whether you use this feature
or not.

--
Mark M. Ito, Thomas Jefferson National Accelerator Facility
12000 Jefferson Ave., Mail Stop 12H, Newport News, VA 23606
Email: marki@jlab.org, Office: (757)269-5295, Pager: (757)680-7175
WWW: http://claspc2.cebaf.gov/~marki/