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
# 1  
Old 04-30-2009
Data background image not loading in newly thrown html page by shell script

I m trying to throw back html page when a file is found.While throwing back html page, the background image is not coming. I am using Apache server.Please suggest how to resolve...
#!/bin/ksh
echo -e "Content-type: text/html\n\n"
echo "<html><head></head><body background=\"/asc/ppp.jpg\">"
echo "<center><h2> The File name with" echo $QUERY_STRING echo "is found </h2> </center>"
echo "</body></html>" exit 0

Last edited by ravi18s; 04-30-2009 at 03:10 AM..
# 2  
Old 04-30-2009
please suggest something, I googled lots of time but nothing happened...
# 3  
Old 04-30-2009
Please don't bump up the posts - it's against the Forum rules.
# 4  
Old 04-30-2009
Do you call this as a CGI script? Or are you just generating a static HTML file? Does the background image exist? Can the server locate it at the specified path? Does the web server have read access to the file? Could you properly format your code and put it in [code] and [/code]tags for readability?

Last edited by vgersh99; 04-30-2009 at 09:49 AM.. Reason: added [noparse]/[/noparse] tags for bb codes
# 5  
Old 04-30-2009
yes I am calling this as a CGI script, this script runs when an html form submit the values using get method, then after submitting this script runs and get the value from form and then html page is created. Background image do exist and web server can read it... but when html page gets created its background image is not coming..

dear vgresh99,
I am a new member in future I would not send such mails sorry for that
# 6  
Old 04-30-2009
So when you call the background image directly in the browser it shows?

Are there any errors/messages when you call your script directly, or in Apaches error_log?
# 7  
Old 05-05-2009
[Wed Apr 29 06:25:06 2009] [error] [client 130.20.144.17] (8)Exec format error: exec of '/home/edi/apache_2.2.4/cgi-bin/ppp.jpg' failed, referer: Domain Acquisition Service-Sedo.com

This error is coming ...its from error logs

On directly accessing the image from browser the image does not appear.
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