source: client/shared/lib/httpd/LogSession.sh @ 791d013

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 791d013 was 4fcbcc8, checked in by irina <irinagomez@…>, 11 years ago

#636 #537 Log en tiempo real. En los script de restauracion los mensajes se envian a session.log y las salidas de los comandos a commad.log. utf-8 en la pagina que muestra los log

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

  • Property mode set to 100755
File size: 658 bytes
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=./LogSession.sh'>"
7echo "   <title>Bash as CGI</title>"
8
9echo "<style type='text/css'>"
10echo "<!--"
11echo "TEXTAREA {"
12echo "background-color: navy;"
13echo "border: black 2px solid;"
14echo "color: white;"
15echo "font-family: arial, verdana, ms sans serif;"
16echo "font-size: 8pt;"
17echo "font-weight: normal"
18echo "} "
19echo "-->"
20echo "</style>"
21
22echo "</head><body>"
23
24echo "<TEXTAREA NAME='contenido' ROWS='115' COLS='175'  >"
25echo "$(cat /tmp/session.log | uniq )"
26echo "</TEXTAREA>"
27
28echo "</body></html>"
29
Note: See TracBrowser for help on using the repository browser.