Page MenuHomec4science

app_monitor1.py
No OneTemporary

File Metadata

Created
Sun, Jul 6, 16:36

app_monitor1.py

#!/usr/bin/env python
'''
Created on 18.04.2018
@author: trevaz (tristan.revaz@epfl.ch)
---------------------------------------------------------------------------------
app: monitor1 (slurm)
---------------------------------------------------------------------------------
'''
#################################################################################
# IMPORTS
#################################################################################
import os
from fctlib import get_case_path
#################################################################################
# CONSTANTS
#################################################################################
#################################################################################
# MAIN FUNCTION
#################################################################################
def monitor1(PATH, case_name):
'''
DEF: monitor1 case (slurm).
INPUT: - case_name: name of the case, type=string
OUTPUT: - ()
'''
case_path = get_case_path(PATH, case_name)
os.system('tail -f ' + str(os.path.join(case_path, 'slurm*')))

Event Timeline