CGI enquiry


 
Thread Tools Search this Thread
Top Forums Web Development CGI enquiry
# 1  
Old 03-11-2012
CGI enquiry

Hello,

I am new to Linux and have a general question.

In linux and unix you can have CGI scripts. I am aware of CGI as Computer Generated Images in graphics and Common Gateway Interface, but what are CGI scripts in relation to Linux or Unix?

Are CGI's in Linux and Unix relevant to only Web Development or are they used for other things?

Thank you

ajfarroll
# 2  
Old 03-11-2012
Hi Ajfarroll,

In the main CGI in the Unix world refers to the Common Gateway Interface, which is a way of interpreting and generating web pages. If you would like to gain a deeper understanding then you could google for "RFC 3875" or Request For Comments 3875.

These in the main are scripts stored under the "cgi-bin" directory on web servers, they are mostly used to dynamically generate web pages.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

CGI Perl : while loop in CGI perl

Hi Team, I am trying to connect to database(succeeded ) and print the records on the browser using while loop. But the elements of array are not displayed instead while loop is displayed directly. Instead of the below I can embed html statements in print but I am looking for the below style as I... (1 Reply)
Discussion started by: scriptscript
1 Replies

2. Shell Programming and Scripting

Perl CGI : unable to download the excel sheet from perl cgi page

Hi All, I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet. I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet. print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies

3. Shell Programming and Scripting

Perl cgi pages out of cgi-bin folder in WINDOWS

Hi team, I have a typical problem with cgi pages in apache webserver in WINDOWS I am able to execute(display) the pages that are saved in cgi-bin folder. But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder. Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies

4. Web Development

problem with exporting vairable from one perl cgi to another perl cgi script while redirecting.

Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect. Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is redirected to welcome page. My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies

5. Shell Programming and Scripting

ENQUIRY WHETHER SCRIPT FOR DETECTING WORDS FROM A SET OF LETTERS EXISTS

Hello, I am interested in finding out whether someone has a perl or awk script which takes a set of letters such as wak and referring to a dictionary spews out all possible forms such as awk, kaw etc. If someone has such a script, could it be put up please. The script should handle Unicode. Many... (0 Replies)
Discussion started by: gimley
0 Replies

6. Shell Programming and Scripting

Reading File Enquiry

Hi There, I am a beginner when it comes to writing scripts in LINUX so please bear with me when it comes to the question as it is probably a very simple issue. I am just using some free time to write some LINUX scripts and have just worked ona very basic program that allows a user to input... (1 Reply)
Discussion started by: RedAlex76
1 Replies

7. Web Development

Need help with cgi and so on

Hello all, i`m new here and new in programming with cgi. But i need it for my running project. I`ve googled half a week with no success. All i need is to run an .sh-file via cgi. My file is stored in /home/bots/ but if i try #!/bin/sh echo 'Content-type: text/html' echo echo... (5 Replies)
Discussion started by: cryp0r
5 Replies

8. Solaris

apache ErrorDocument 400 /cgi-bin/400.cgi

Hi All, Sorry if the question is trivial for you but, I am new to Apache (2.0.63) and am trying to figure out how to display my 400.cgi. Here is what I have in httpd.conf servername testing DocumentRoot "/usr/local/apache2/htdocs" ErrorDocument 400 /cgi-bin/badrequest-400.cgi Here is... (0 Replies)
Discussion started by: afadaghi
0 Replies

9. Shell Programming and Scripting

CGI passing arrays/hashes to another CGI script

If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link? Hope that makes sense! :) (2 Replies)
Discussion started by: WIntellect
2 Replies

10. Shell Programming and Scripting

cgi

I am having trouble running my perl cgi on the Internet. After i put the cgi file into the public_html directory and try to browse it on the internet, it returns me the exact content of the cgi file. Is the file permission 755 for the cgi file correct? My path to perl is something like ... (2 Replies)
Discussion started by: vince
2 Replies
Login or Register to Ask a Question