![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| APACHE: Tie in Web Page login with server login | WhotheWhat | Security | 1 | 11-26-2008 02:58 AM |
| APACHE: Tie in Web Page login with server login | WhotheWhat | Web Programming, Web 2.0 and Mashups | 2 | 11-19-2008 11:17 AM |
| Html web page to Unix Connectivity | abhilashnair | UNIX and Linux Applications | 1 | 03-06-2008 10:13 AM |
| linking unix generated text file to html page | alexd | Shell Programming and Scripting | 1 | 11-13-2002 12:21 PM |
| Unix Manual (man-page) pages in HTML | killerserv | News, Links, Events and Announcements | 1 | 06-26-2002 12:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Dear Pludi, Thanks for the code. But the problem is somewhat different and I already know how get or post works and how to run the scripts.
So let me explain you in a different manner. I dont want to use JSP and want to implement in html. Lets take one example.... I have two html pages... first one is a login page through which a user will be able to login and then only will be able to see the second html page... and noone can able to directly access the second page without loging in... The problem is the login page that I want to design in such a way that it will give freedom to the user to change its password... and how I can use session in html pages..... Thanks and hope this time you can understand my problem more clearly |
|
|||||
|
Authentication: not possible with plain HTML
Authorization: not possible with plain HTML User administration (including changing passwords): not possible in plain HTML Sessions: not possible with plain HTML For all 4 you'll have to at least code something up in JavaScript, or call any CGI backend (Shell, C, JSP, PHP, Perl, ...) |
|
||||
|
Hi Pludi,
Can you provide some links on how to code a CGI to run from an HTML page or how to call it? I tried yours, but it does not work as I get the error: Code:
[Mon Jul 20 12:44:22 2009] [error] (8)Exec format error: exec of '/lsf1/IBM/IHS/cgi-bin/minimal.sh' failed [Mon Jul 20 12:44:22 2009] [error] [client 000.00.00.00] Premature end of script headers: minimal.sh |
|
|||||
|
Does Apache know that /lsf1/IBM/IHS/cgi-bin/ is a valid CGI directory? May the user Apache is running as run the script (eXecutable bit set)? Is /bin/bash a valid interpreter on your machine. Did you know that within 2 months you could probably have learned all the Perl/PHP that's needed for your task, plus some?
|
|
||||
|
Hi Pludi,
Yes that is the valid CGI directory and the user can run the scripts. I removed the reference to bash as we use ksh. When I run the script from the unix command line it works. I had only found the link yesterday and thought if you had some links to running Perl or ksh scripts from a web page I could do the rest myself. Thank you for your response. ---------- Post updated at 10:17 AM ---------- Previous update was at 07:52 AM ---------- Hi Pludi, Wanted to let you know that it worked once I changed the content type to text/html and added the line Code:
#!/bin/sh |
|
|||||
|
Argh, head, meet desk. Sorry for lashing out with my last question, shouldn't answer questions when sleepy.
As for your problem, the type of text/plain shouldn't affect execution in any way. The shebang line (the one starting with #!) should look like one of the following:
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| apache2, html, unix |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|