Blame view

list_container.sh 630 Bytes
3e470988   hmalti   First commit
1
2
  #!/bin/bash
  
b02be524   hmalti   Correctifs + gest...
3
  for eachfile in $PATH_MANIFEST/containers/*.manifest
3e470988   hmalti   First commit
4
  do 
b02be524   hmalti   Correctifs + gest...
5
6
7
8
9
10
  	#Test si des fichiers sont présents
  	test -f "$eachfile" || continue
  	NOM_CONTAINER=$(grep nom_container $eachfile | cut -d ':' -f2)
  	NOM_IMAGE=$(grep nom_image $eachfile | cut -d ':' -f2)
  	PID=$(grep pid $eachfile | cut -d ':' -f2)
  	TIME=$(grep starting_time $eachfile | cut -d':' -f2)
061a7e29   hmalti   Corrections
11
  	INTERFACES=$(grep interfaces $eachfile | cut -d':' -f2)
b02be524   hmalti   Correctifs + gest...
12
  	echo "----------------------"
061a7e29   hmalti   Corrections
13
  	echo "Nom container: $NOM_CONTAINER"
b02be524   hmalti   Correctifs + gest...
14
15
  	echo "Nom image: $NOM_IMAGE"
  	echo "PID: $PID"
061a7e29   hmalti   Corrections
16
17
  	echo "Starting time: $TIME"
  	echo "Interfaces: $INTERFACES"
b02be524   hmalti   Correctifs + gest...
18
  	echo "----------------------"
3e470988   hmalti   First commit
19
  done