XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


eimsimbatch (eimsim-2.4) [xmmsas_20190531_1155-18.0.0]


Lock and stop files

Task eimsimbatch writes a lock file in the PWD when it commences running. The filename of this lock file has the format `lock_$<$streamnumber$>$'. This helps to prevent any other invocation of eimsimbatch with the same streamnumber running in the same PWD. It isn't foolproof, since it sets up a `race condition'. (Google if curious.) The task deletes the lock file at the end of operations. If the task fails with an error, this lock file remains undeleted and will prevent renewed invocation of the task with the same streamnumber until it is deleted by hand.

If you want to halt eimsimbatch at the end of a processing loop, halt it `nicely' that is, without resorting to control-Cs or `kills', this may be accomplished by writing a stop file, of filename format `stop_$<$streamnumber$>$', into the PWD. Doing `touch stop_$<$streamnumber$>$' is sufficient. The task deletes the stop file before exiting.



XMM-Newton SOC/SSC -- 2019-06-02