-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathargecho.sh
More file actions
executable file
·43 lines (32 loc) · 758 Bytes
/
argecho.sh
File metadata and controls
executable file
·43 lines (32 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
mkdir -p logs
# args
echo "Arguments:"
echo "$@" > ./logs/args.txt 2>&1
# current wd
echo "Working Directory:"
pwd > ./logs/pwd.txt 2>&1
# python packages
echo "Python Version:"
python --version > ./logs/pythonversion.txt 2>&1
# network
echo "Network:"
ip link show > ./logs/iplink.txt 2>&1
ip route list > ./logs/iproute.txt 2>&1
# what are mounted
echo "File Systems Mounted:"
df -kH > ./logs/df.txt 2>&1
# files in current dir
echo "Files:"
find . -print > ./logs/find.txt 2>&1
# conda
echo "Conda:"
conda env list > ./logs/conda.env.list.txt 2>&1
# python
echo "Python Packages:"
pip freeze > ./logs/pip.freeze.txt 2>&1
# libraries
echo "Libraries"
ldconfig -p > ./logs/ldconfig.txt 2>&1
# wait at least one minute
sleep 60