Re: Dynamic Web Page creation from Bash??
On Mon, Dec 13, 2004 at 10:57:28AM -0600, Jeremy Turner wrote:
> On Sat, Dec 11, 2004 at 07:30:19PM +0000, ognjen Bezanov wrote:
> > I have a bash script which gives me details about my system (free space,
> > RAID status, uptime etc....) and while this is all good when im logged
> > in via SSH i would like some way to actually be able to display this
> > information on a web page so that it can be accessed from anywhere?
You can write cgi-scripts in bash. Just copy your script to your cgi-bin
directory, and add:
#!/bin/bash
echo Content-Type: text/plain; echo
at the start of it. Voila!
Sam
Reply to: