- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
echo ""
echo -e '\033[1m'" MONITOR FOR SYSTEM SWITCH $current"'\033[0m'
echo " *************************************************"
#1
{
read line1
} < $DIR_FLAG/$file1
{
read lines1
} < $DIR_FLAG/$files1
if [ "$line1" = "STOP" ]; then echo -e '\E[31m'" TASK 1: --> $lines1" ; tput sgr0
else echo -e '\E[32m'" TASK 1: >< $lines1" ; tput sgr0
fi
#2
{
read line2
} < $DIR_FLAG/$file2
{
read lines2
} < $DIR_FLAG/$files2
if [ "$line2" = "STOP" ]; then echo -e '\E[31m'" TASK 2: --> $lines2" ; tput sgr0
else echo -e '\E[32m'" TASK 2: >< $lines2" ; tput sgr0
fi
#3
{
read line3
} < $DIR_FLAG/$file3
{
read lines3
} < $DIR_FLAG/$files3
if [ "$line3" = "STOP" ]; then echo -e '\E[31m'" TASK 3: --> $lines3" ; tput sgr0
else echo -e '\E[32m'" TASK 3: >< $lines3" ; tput sgr0
fi
#4
{
read line4
} < $DIR_FLAG/$file4
{
read lines4
} < $DIR_FLAG/$files4
if [ "$line4" = "STOP" ]; then echo -e '\E[31m'" TASK 4: --> $lines4" ; tput sgr0
else echo -e '\E[32m'" TASK 4: >< $lines4" ; tput sgr0
fi
#5
{
read line5
} < $DIR_FLAG/$file5
{
read lines5
} < $DIR_FLAG/$files5
if [ "$line5" = "STOP" ]; then echo -e '\E[31m'" TASK 5: --> $lines5" ; tput sgr0
else echo -e '\E[32m'" TASK 5: >< $lines5" ; tput sgr0
fi
#6
{
read line6
} < $DIR_FLAG/$file6
{
read lines6
} < $DIR_FLAG/$files6
if [ "$line6" = "STOP" ]; then echo -e '\E[31m'" TASK 6: --> $lines6" ; tput sgr0
else echo -e '\E[32m'" TASK 6: >< $lines6" ; tput sgr0
fi
#7
{
read line7
} < $DIR_FLAG/$file7
{
read lines7
} < $DIR_FLAG/$files7
if [ "$line7" = "STOP" ]; then echo -e '\E[31m'" TASK 7: --> $lines7" ; tput sgr0
else echo -e '\E[32m'" TASK 7: >< $lines7" ; tput sgr0
fi
#8
{
read line8
} < $DIR_FLAG/$file8
{
read lines8
} < $DIR_FLAG/$files8
if [ "$line8" = "STOP" ]; then echo -e '\E[31m'" TASK 8: --> $lines8" ; tput sgr0
else echo -e '\E[32m'" TASK 8: >< $lines8" ; tput sgr0
fi
#9
{
read line9
} < $DIR_FLAG/$file9
{
read lines9
} < $DIR_FLAG/$files9
if [ "$line9" = "STOP" ]; then echo -e '\E[31m'" TASK 9: --> $lines9" ; tput sgr0
else echo -e '\E[32m'" TASK 9: >< $lines9" ; tput sgr0
fi
и т.д.
NTMan 15.04.2010 12:06 # +0.2
guest 15.04.2010 14:36 # −2.6
С++
NTMan 15.04.2010 14:45 # −1.6
Сам перекладчик состоит сплошь из такого кода.
guest 15.04.2010 15:05 # +1.6
Шелл! Скрипт!! Мониторинга!!! Работы!!!! Перекладчика!!!!! Файлов!!!!!!
Это что за перекладчик? команда cp?
guest 15.04.2010 21:56 # +2.4
guest 16.04.2010 17:32 # 0
guest 16.04.2010 18:53 # 0
guest 16.04.2010 21:27 # +1
guest 15.04.2010 17:23 # 0
guest 15.04.2010 20:32 # −2.8
guest 16.04.2010 19:36 # −1.2
guest 16.04.2010 22:05 # 0