Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120736347
app_monitor1.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 6, 16:36
Size
1 KB
Mime Type
text/x-python
Expires
Tue, Jul 8, 16:36 (2 d)
Engine
blob
Format
Raw Data
Handle
27239888
Attached To
rWIRELESGPU wireles-gpu
app_monitor1.py
View Options
#!/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
Log In to Comment