source: client/shared/lib/httpd/LogCommand.sh @ 2ef79da

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 2ef79da was 253f69e, checked in by irina <irinagomez@…>, 11 years ago

#636 #565 correccion errata nombre variable OG_ERR_NOTDIFFERENT y utf8 en log en tiempo real

git-svn-id: https://opengnsys.es/svn/branches/version1.0@4154 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/bash
2echo "Content-type: text/html"
3echo ""
4echo "<html><head>"
5echo "<meta charset='utf-8'>"
6echo "<meta http-equiv='Refresh' content='5,URL=./LogCommand.sh'> <link rel='stylesheet' type='text/css' href='oglive.css' />"
7echo "<title>Bash as CGI</title></head><body>"
8
9$(strings -e S /tmp/command.log > /tmp/command.log.tmp)
10
11echo "<table>"
12
13echo "<tr>"
14
15
16echo "<TEXTAREA NAME='trackloghead' ROWS='13' COLS='175'>"
17#echo "$(head -n 10 /tmp/command.log.tmp | uniq)"
18# UHU - 2013/07/05 - Se incluye el simbolo % y la palabra sent para que se muestre la salida de rsync
19echo "$(egrep -v '^bytes|%|sent|^Elapsed:|^Total [Tt]ime:|^-|^\\|^\/' /tmp/command.log.tmp | uniq | head -n 15)"
20echo "</TEXTAREA>"
21
22echo "</tr>"
23
24
25echo "<tr>"
26
27echo "<TEXTAREA NAME='tracklogtail' ROWS='2' COLS='175'>"
28#echo "$(tail -n 5 /tmp/command.log.tmp | uniq)"
29# UHU - 2013/07/05 - Se incluye el simbolo % y la palabra sent para que se muestre la salida de rsync
30echo "$(egrep '^bytes|%|sent|^Elapsed:|^Total [Tt]ime:|^-|^\\|^\/' /tmp/command.log.tmp | uniq | tail -n 2)"
31echo "</TEXTAREA>"
32
33
34echo "</tr>"
35
36echo "</table>"
37
38
39echo "</body></html>"
Note: See TracBrowser for help on using the repository browser.