Register
It is currently Wed Nov 26, 2014 11:29 pm

make a web page


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue May 17, 2005 7:45 pm   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
ok...let's make a super simple web page just using bash (well...and some html) :)
the first 2 lines are required ofcourse
Code:
#!/bin/bash

# let's set how the script will be viewed
echo "Content-type: text/html"
echo ""

# now for the guts :)
echo "<html>"
echo "Today is " $(date)

# if we want to enter text from a command without it being changed
echo "The users logged onto the server are: "
# we would use the pre tag
echo "<pre>"
who
echo "</pre>"
echo "</html>"

and that is basically it...
now you just have to make it executable and stick it into the
<web server base>/cgi-bin/ directory
have fun with this....


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP