source: client/shared/lib/httpd/LogCommand.sh @ 380e3e0

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 380e3e0 was be2da41, checked in by ramon <ramongomez@…>, 12 years ago

#612: Integrar código del ticket en rama de desarrollo.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@3998 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><meta http-equiv='Refresh' content='5,URL=./LogCommand.sh'> <link rel='stylesheet' type='text/css' href='oglive.css' /> <title>Bash as CGI"
5echo "</title></head><body>"
6
7$(strings /tmp/command.log > /tmp/command.log.tmp)
8
9echo "<table>"
10
11echo "<tr>"
12
13
14echo "<TEXTAREA NAME='trackloghead' ROWS='13' COLS='175'>"
15#echo "$(head -n 10 /tmp/command.log.tmp | uniq)"
16# UHU - 2013/07/05 - Se incluye el simbolo % y la palabra sent para que se muestre la salida de rsync
17echo "$(egrep -v '%|sent|^Elapsed:\|^Total [Tt]ime:\|^-\|^|\|^bytes\|^\[' /tmp/command.log.tmp | uniq | head -n 15)"
18echo "</TEXTAREA>"
19
20echo "</tr>"
21
22
23echo "<tr>"
24
25echo "<TEXTAREA NAME='tracklogtail' ROWS='2' COLS='175'>"
26#echo "$(tail -n 5 /tmp/command.log.tmp | uniq)"
27# UHU - 2013/07/05 - Se incluye el simbolo % y la palabra sent para que se muestre la salida de rsync
28echo "$(egrep '%|sent|^Elapsed:\|^Total [Tt]ime:\|^-\|^|\|^bytes' /tmp/command.log.tmp | uniq | tail -n 2)"
29echo "</TEXTAREA>"
30
31
32echo "</tr>"
33
34echo "</table>"
35
36
37echo "</body></html>"
Note: See TracBrowser for help on using the repository browser.