source: client/shared/lib/httpd/LogCommand.sh @ d568b1f

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 d568b1f was 4ee02ce, checked in by ramon <ramongomez@…>, 13 years ago

Versión 1.0.4, #531: Corregir permisos de ficheors.

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

  • Property mode set to 100755
File size: 870 bytes
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)"
16echo "$(grep -v '^Elapsed:\|^Total [Tt]ime:\|^-\|^|\|^bytes\|^\[' /tmp/command.log.tmp | uniq | head -n 10)"
17echo "</TEXTAREA>"
18
19echo "</tr>"
20
21
22echo "<tr>"
23
24echo "<TEXTAREA NAME='tracklogtail' ROWS='2' COLS='175'>"
25#echo "$(tail -n 5 /tmp/command.log.tmp | uniq)"
26echo "$(grep '^Elapsed:\|^Total [Tt]ime:\|^-\|^|\|^bytes' /tmp/command.log.tmp | uniq | tail -n 2)"
27echo "</TEXTAREA>"
28
29
30echo "</tr>"
31
32echo "</table>"
33
34
35echo "</body></html>"
Note: See TracBrowser for help on using the repository browser.