Project

General

Custom queries

Profile

Actions

Feature #8404

closed

allow environment variable replacement of path in leginon.cfg parsing

Added by Anchi Cheng about 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
12/20/2019
Due date:
% Done:

0%

Estimated time:
Deliverable:

Description

SEMC starts to have more than one data storage system as we expand. We want to allow local staff with the same LDAP to collect to the different system depending on the leginon linux computer they log into.


Related issues 1 (0 open1 closed)

Related to Leginon - Feature #2990: generalize environment variable assigned cfg file pathClosedSargis Dallakyan12/08/2014

Actions
Actions #1

Updated by Anchi Cheng about 5 years ago

Usage:

Use ${} to enclose the case sensitive variable name in leginon.cfg. For example

If you login as my_name and have an environment variable setup as

CRYOEM_BIG_STORAGE=data01

Then

[Images]
path: /${CRYOEM_BIG_STORAGE}/${USER}/leginon

is parsed as

[Images]
path: /data01/my_name/leginon

Actions #2

Updated by Anchi Cheng almost 5 years ago

  • Status changed from Assigned to Closed

works

Actions #3

Updated by Shaker Krit over 4 years ago

  • Status changed from Closed to In Test

The environment variable "CRYOEM_BIG_STORAGE" needs to be set withing "betaleginon" or "nccatleginon".

What changes have to be made for the transfer monitor script?

Anchi's suggestion is to have two different monitoring scripts each monitoring a different directory path (e.g. one for /ingest1data/beegfs another for /ingest1data/gpfs)

Actions #5

Updated by Swapnil Bhatkar over 4 years ago

  • File NYSBC Leginon_Client.bat added
  • File NCCAT Leginon_Client.bat added

2 batch files for NCCAT and NYSBC leginon files

Actions #6

Updated by Anchi Cheng about 4 years ago

  • Related to Feature #2990: generalize environment variable assigned cfg file path added
Actions #7

Updated by Anchi Cheng about 4 years ago

  • Status changed from In Test to Closed

Works for me.

Actions #8

Updated by Swapnil Bhatkar about 4 years ago

  • File deleted (NYSBC Leginon_Client.bat)
Actions #9

Updated by Swapnil Bhatkar about 4 years ago

  • File deleted (NCCAT Leginon_Client.bat)
Actions

Also available in: Atom PDF