The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Function loading in a shell scripting like class loading in java mpsc_sela Shell Programming and Scripting 1 06-09-2008 08:02 AM
Invoking shell script from html/jsp page bubeshj Shell Programming and Scripting 2 06-28-2006 02:53 PM
Access shell scripts from HTML page nhatch Shell Programming and Scripting 4 03-01-2005 11:48 AM
loading a unix image ahaurek UNIX for Dummies Questions & Answers 1 05-09-2001 02:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-30-2009
ravi18s ravi18s is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 17
Unhappy 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 (permalink)  
Old 04-30-2009
ravi18s ravi18s is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 17
please suggest something, I googled lots of time but nothing happened...
  #3 (permalink)  
Old 04-30-2009
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
Please don't bump up the posts - it's against the Forum rules.
  #4 (permalink)  
Old 04-30-2009
pludi's Avatar
pludi pludi is online now Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,927
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 (permalink)  
Old 04-30-2009
ravi18s ravi18s is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 17
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 (permalink)  
Old 04-30-2009
pludi's Avatar
pludi pludi is online now Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,927
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 (permalink)  
Old 05-05-2009
ravi18s ravi18s is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 17
[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.
Closed Thread

Bookmarks

Tags
apache2, html, korn shell scripting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0