Publishing HTML Page

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Publishing HTML Page
# 1  
Old 09-10-2010
Lightbulb Publishing HTML Page

Hi All,
Thanks for reading.
I am not sure if I am asking this in the correct group. But here it goes:

There is a shell script which does some system checks and creates an html file called system_summary.html on my Red Hat machine say in /reports directory every hour.

Now I want to view it in firefox . like a web page .. something like opening a page [http://localhost/system_summary.html]

I am just done with the script. What all do I need to do now?

D
# 2  
Old 09-10-2010
You'll need a webserver to publish it for you. Maybe you got an apache httpd running. You can check this for example with
Code:
ps -ef| grep -iE "apache|httpd"

or if any other httpd is serving at port 80 with
Code:
$> netstat -an| grep ":80 "
tcp6       0      0 :::80                   :::*                    LISTEN

If there is nothing, it is either not installed or not started. I think on Redhat you use rpm or yum to install packages.
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 09-10-2010
Thanks for that .. i m just trying to do some fancy reporting .. havent done anything with the web server stuff ... ill google the rest of the steps
# 4  
Old 09-10-2010
Basically after apache is installed and running, you have to check where it's document root is and place your report there or make a new entry for a directory to be published in httpd.conf or whereever in your distro apache's config are splitted and outsourced to. It often depends on the distro where apache's config files are and how they are activated etc.
Since RedHat has superb documentation, I think it will not be too hard. Anyway if you have a particular question, do not hesitate to ask here.
# 5  
Old 09-10-2010
Another option would be to have the script move your last doc to another folder and then automatically share the current directory with:
Code:
python -m SimpleHTTPServer

Then that dir is shared out on port 8000. You can killall python at any point to stop the web server.
# 6  
Old 09-11-2010
On RHEL, the default document root is /var/www/html. The http service is called httpd. To start the httpd service do the following:
Code:
service httpd start
chkconfig httpd on

# 7  
Old 09-13-2010
Yep - apache is running and i could see the /var/www/html directory ..
Now all I need to put the html page in that directory ..
thanks guys .. all helpful tips Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Accessing the html page

Hi All, In our unix server we have an apache web server running. Now, I want to create my own webpage. Therefore I created webpage at /export/home/test.html file. Where do I need to place this file and what do I need mention this page in my web browser to access it. Without apache... (1 Reply)
Discussion started by: Arasu
1 Replies

2. Programming

C++: get html page and store it in string

Hello all, I want to write c++ program which will get html page content, put it in std::string variable, and finally print it to stdout. Which tool can I use to get this effect? Is cUrl good solution ? Thank you for your time. (1 Reply)
Discussion started by: new_item
1 Replies

3. Shell Programming and Scripting

Attached HTML page to Email

Greeting all, Not sure anyone tested to send out email with HTML page as attachment from Shell Script ? I know if I use uuencode file.html approach, the mail receive in attachment is empty. So I guess uuencode cannot be use for the html code. Appreciate if anyone can share the code to... (0 Replies)
Discussion started by: ckwan
0 Replies

4. Shell Programming and Scripting

How to extract url from html page?

for example, I have an html file, contain <a href="http://awebsite" id="awebsite" class="first">website</a>and sometime a line contains more then one link, for example <a href="http://awebsite" id="awebsite" class="first">website</a><a href="http://bwebsite" id="bwebsite"... (36 Replies)
Discussion started by: 14th
36 Replies

5. UNIX for Dummies Questions & Answers

Publishing HTML Page

Hi All, Thanks for reading. I am not sure if I am asking this in the correct group. But here it goes: There is a shell script which does some system checks and creates an html file called system_summary.html on my Red Hat machine say in /reports directory every hour. Now I want to view it... (1 Reply)
Discussion started by: deepakgang
1 Replies

6. Web Development

How to auto update html page

is there any way to auto update html page. I created html page entry.html, whenever i change in html script i need to refresh my page. If not in html, can we do this in any other language and how? (2 Replies)
Discussion started by: RohitKJ
2 Replies

7. Web Development

Login page in html on unix

I want to create a login page in HTML which is hosted on apache server. The login page first authenticate the user and then directed to a form which in turn run a script on the server. I want to make login page without php or jsp. Please advice. (13 Replies)
Discussion started by: ravi18s
13 Replies

8. Web Development

findstr in html page

I am planning to create an html page that will count number of connected ports, challenge for me is how to put it in a page. Thanks! (1 Reply)
Discussion started by: webmunkey23
1 Replies

9. UNIX for Dummies Questions & Answers

Accessing a HTML page

Hi All, In our unix server we have an apache web server running. I can access the default apache web page from my windows machine. Now, I want to create my own webpage. Therefore I created webpage at /export/home/myname/test.html file. Where do I need to place this file and what do I need... (2 Replies)
Discussion started by: pkm_oec
2 Replies

10. Solaris

Accessing a HTML page

Hi All, In our unix server we have an apache web server running. I can access the default apache web page from my windows machine. Now, I want to create my own webpage. Therefore I created webpage at /export/home/myname/test.html file. Where do I need to place this file and what do I need... (0 Replies)
Discussion started by: pkm_oec
0 Replies
Login or Register to Ask a Question