background image not loading in newly thrown html page by shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting background image not loading in newly thrown html page by shell script
# 8  
Old 05-05-2009
This tells me 2 things:
  1. Your webserver tries to execute your image as if it were a CGI script/executable
  2. Your HTML page looks for the image in /cgi-bin/ppp.jpg, not in /asc/ppp.jpg as you originally posted.
Check if you've put the files in the correct locations, using correct permissions.
# 9  
Old 05-05-2009
I couldnot understand your first point but as far as second point is concerned, I had given /asc/ppp.jpg as an example... actually my html form takes the image from /cgi-bin/ppp.jpg...

The problem is that when the script is running it is throwing a page back to the client as response and in that response the background image is not coming.
Thank you.
# 10  
Old 05-05-2009
Quote:
Originally Posted by ravi18s
[...]as far as second point is concerned, I had given /asc/ppp.jpg as an example... actually my html form takes the image from /cgi-bin/ppp.jpg...

The problem is that when the script is running it is throwing a page back to the client as response and in that response the background image is not coming.
Yes, you said that in all your previous posts. And giving an example is nice, except if the original path is, as in your example, part of the problem.

The /cgi-bin path is (Apaches) default path for CGI scripts. Any file in there with the executable bit set is considered a runnable. An image is never runable, but the webserver tries nonetheless and fails, generating a line in the error_log.

Remove the executable bit from the file, move it to an appropriate location (say... /images), adapt your script to use the correct path, and everything should work.
# 11  
Old 05-05-2009
I got your point... now after changing the path I have got the image now in the background...
Thank you
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Embed image to the html script

hi, trying to embed an image to the html file to send out as an email. img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg but getting error as file not found after it aplies base64 on the file. (8 Replies)
Discussion started by: ATWC
8 Replies

2. Shell Programming and Scripting

Insert an image in HTML mail sent from Shell script

Hi Shell Experts I am trying to insert an image into HTML email through shell script send mail, I have the email text file which included body and the images included in it in html format. Through my Shell script, I am calling the text file and send it through email so it it sends the email with... (21 Replies)
Discussion started by: anji009
21 Replies

3. Shell Programming and Scripting

Download dynamic generated image from HTML page

I've an HTML page where the pie chart is generated with google java code with the required input values in UNIX. The HMTL page is generated in UNIX and then when it loads in browser, the code is interpreted thought internet and the pie chart is generated. This is done by the java code in the... (4 Replies)
Discussion started by: Amutha
4 Replies

4. AIX

How to Use a UNIX Shell Script to Create an HTML Web Page?

dear friends , in my work i have to monitor some system performance in hourly basis by runing some commands , for example (lpstat) to know that all the queue is ready how can i create webpage and connect it with the server (AIX operating system) and make this page refreshed every 10 second and... (12 Replies)
Discussion started by: rami abusweilei
12 Replies

5. Shell Programming and Scripting

Get checkbox checked value from html page to the bash script

hi i m printing all current running processes into an html page with checkbox for each process , using bash script i want to get(retrive) the value of that checked checkbox to kill the process ,can anybody please helpme out thanks in advance (1 Reply)
Discussion started by: vagga06
1 Replies

6. Shell Programming and Scripting

Dynamic checkbox(HTML page) for each process using shell script

Hi friends, I m newbie to bash scripting , i m writing script(bash) that will display all processes which r running in my system in an html page, everything going fine but i m not able to get checkbox dynamically for each process in html page ,so that i can mark that process... (2 Replies)
Discussion started by: vagga06
2 Replies

7. Shell Programming and Scripting

Migrating from Shell Script to HTML Page

Hi, Need Help, Recently I have thought to migrating my Korn Shell Scripts to html page..., already webserv is running on my unix machine. How to migrate the shell scripts to html page.. Please refer any web portal or sample codes. Thanks in Adavce (2 Replies)
Discussion started by: l_gshankar24
2 Replies

8. Web Development

Call shell script from HTML page - without web server

Hi, I have html page in my unix machine(server), which I will open with firefox or mozilla available in unix machine. Firefox or mozilla will be opened using x windows. Since I have access to unix machien(like other users) and this HTML page is for user having access to Unix machine, I see no... (7 Replies)
Discussion started by: vamanu9
7 Replies

9. Shell Programming and Scripting

Invoking shell script from html/jsp page

I want to invoke shell script named bubesh.sh when submit button clicked on html/jsp page.I am using an apache server and the html & shell script are in the same working directory.Please help. (2 Replies)
Discussion started by: bubeshj
2 Replies

10. Shell Programming and Scripting

Access shell scripts from HTML page

Hi, I need (have been asked/order/instructed) to migrate the access of a number of ksh scripts into a html/web page environment. Currently access is with the user logging onto a unix box and accessing the scripts that way. The users are not unix people so I have restricted the access solely to... (4 Replies)
Discussion started by: nhatch
4 Replies
Login or Register to Ask a Question