Browse Source

ajout image htop. créé YaPLog.sh. corrigé erreurs dans chef_o

Citnop 3 years ago
parent
commit
3234a8718f
3 changed files with 8 additions and 2 deletions
  1. 6 0
      YaPLog.sh
  2. 2 2
      chef/chef_d_orchestre.sh
  3. BIN
      img/htop.png

+ 6 - 0
YaPLog.sh

@@ -0,0 +1,6 @@
1
+#!/bin/bash
2
+
3
+echo "Début de YaPLog."
4
+./scripts/bash/chef_d_orchestre.sh
5
+echo "Fin de YaPLog"
6
+

+ 2 - 2
chef/chef_d_orchestre.sh

@@ -151,7 +151,7 @@ for i in `cat /home/administrateur/prod/noSite.csv`
151 151
 do
152 152
 	if [ -d "/home/administrateur/prod/sandbox/site${i}" ]
153 153
 	then
154
-		DATE=`/bin/ls /home/administrateur/prod/sandbox/site01/ | grep ascii | head -1 | cut -d'.' -f2 | cut -c1-8` 
154
+		DATE=`/bin/ls /home/administrateur/prod/sandbox/site${i}/ | grep ascii | head -1 | cut -d'.' -f2 | cut -c1-8` 
155 155
 		#sok "${i}"
156 156
 		for heure in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
157 157
 		do 
@@ -265,7 +265,7 @@ do
265 265
 		sok "${i}"
266 266
 		cp -f /home/administrateur/prod/gnuplot/plotgnu.sh /tmp/
267 267
 		echo 'set title "'"site ${i}"'"' >> /tmp/plotgnu.sh
268
-		echo 'plot "/home/administrateur/prod/sandbox/site'"${i}/site${i}.csv"'" using 1 with boxes lc rgb "blueviolet"' >> /tmp/plotgnu.sh
268
+		echo 'plot "/home/administrateur/prod/sandbox/site'"${i}/res${i}.csv"'" using 1 with boxes lc rgb "blueviolet"' >> /tmp/plotgnu.sh
269 269
 		/tmp/plotgnu.sh > /home/administrateur/prod/sandbox/site${i}/site${i}.png
270 270
 		res=$((res + $?))
271 271
 		#rm -f /tmp/plotgnu.sh

BIN
img/htop.png