Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rb:misc [29/12/2017 19:47] (current)
Line 1: Line 1:
 +====== Misc info ======
 +
 +
 +===== Bash CGI =====
 +
 +Why you would want to do this I don't know, but it seemed to fun at the time to write cgi in some obscure ways.
 +
 +<code bash>
 +#!/bin/bash
 +echo "​Content-Type:​ Text/​HTML"​
 +echo " "
 +echo " "
 +echo "<​html>"​
 +echo "<​title>​BASH cgi script</​title>"​
 +echo "<​body><​h1>​This is `hostname` </​h1></​body>"​
 +echo "</​html>"​
 +
 +</​code>​
 +
  

rb/misc.txt ยท Last modified: 29/12/2017 19:47 (external edit)