Sponsored Content
Top Forums UNIX for Dummies Questions & Answers UNIX beginner - I need help please Post 2347 by JennyW on Tuesday 8th of May 2001 09:00:05 PM
Old 05-08-2001
Hi my name is Jenny.
I'm a very very big beginner with UNIX.

I've made Forms on my website, but need to add CGI to compliment them.

Presently, I don't have a host that supports UNIX.

Is there anywhere I can connect to a UNIX session for free?
If so, will they most likely have the latest version of Perl?

Let me know if I'm not making sense.

I have no idea at all as to where I can start learning about all this CGI/UNIX/Perl stuff.

Does anyone know of any really really basic tutorials? I mean, I'm so "left-in-the-dark" that I don't even know how to log-on or how I'm gonna be able to test my scripts.

Thanks so much for taking the time to read this.
Jenny
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Beginner: Securing a Unix box

Newbie in the Unix world here....trying to load Solaris 2.8 AGAIN, and trying to secure the box this time. Any suggestions anyone? Any tips? Appreciate your help, gurus! TIA, trigeek8888 (2 Replies)
Discussion started by: trigeek8888
2 Replies

2. UNIX for Dummies Questions & Answers

Unix beginner book help

Due to my new job I need to learn Unix to advance in the company and I am mainly a windows and mac user. What is a good book to get me started on the right path and hopefully prevent me from wasting money on several books and weeks of reading. Any response is welcomed thanks in advance. (3 Replies)
Discussion started by: windowsux
3 Replies

3. Shell Programming and Scripting

Unix beginner. Need some very basic help.

Hey all I'm working on a script that will scour a directory of 6000+ files for a line that at the end has a number. Something like 'The number of outputs is: 39200' I'm trying to devise a script to add all of these numbers up, so far I have the grep statement that pulls out each individual... (7 Replies)
Discussion started by: TiznaraN
7 Replies

4. UNIX for Dummies Questions & Answers

Unix Books for Beginner

Hi, I am a beginner and I want to learn Unix, so I want to buy a good unix books. Here's a few books that I think can be useful, but I nned you suggestion and comments. 1. Beginning UNIX by Wrox 2. Mastering Unix by Katherine Wrightson, Joseph Merlino, .. 3. Unix in a Nutshell, Fourth... (1 Reply)
Discussion started by: wizzkid
1 Replies

5. What is on Your Mind?

Unix / Linux Beginner...

Hello folks. I am new to Unix / Linux and this forum and wanted to introduce myself. Currently I work as a system analyst on an old IBM S/390 mainframe system with Sun and SGI at the peripheral that runs the heart of the space surveillance system for the US Air Force. I hear that our future... (2 Replies)
Discussion started by: dbeck
2 Replies

6. Shell Programming and Scripting

Unix Beginner needs help

how do i implement a script that asks user to input a word. it should ask for input a word continuously until the word is longer than 5 characters then stop. this is what i have so far #!/bin/bash read -p "enter word" word1 while ; do echo "continue" done (4 Replies)
Discussion started by: marcusstar10
4 Replies

7. UNIX for Dummies Questions & Answers

5 Unix things you wish you knew as a beginner...

I am trying to get better at UNIX, and I wanted to post a question so I can take some advice from more experienced programmers. What are some things that you wished you knew (while you were learning UNIX) that you think every beginner should know? (2 Replies)
Discussion started by: statichazard
2 Replies

8. HP-UX

Need HP unix documentation for beginner

Hello All, I am working in HP unix since 5 years on application and support. But in order to get opportunity out side i need to learn admintration Can somebody help me to guide hot start for this. Do we have any doc(pdf) to start with. Thanks Krsnadasa (1 Reply)
Discussion started by: krsnadasa
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX Beginner's Book

I am a beginner and have recently started to study unix. I checked some of the posts on this forum just to check if a new member like me can easily be guided and found it very interesting. This seems like a great place where i can get answer to my doubts and questions. I checked the thread for... (1 Reply)
Discussion started by: kaal
1 Replies
CGI::Fast(3pm)						User Contributed Perl Documentation					    CGI::Fast(3pm)

NAME
CGI::Fast - CGI Interface for Fast CGI SYNOPSIS
use CGI::Fast qw(:standard); $COUNTER = 0; while (new CGI::Fast) { print header; print start_html("Fast CGI Rocks"); print h1("Fast CGI Rocks"), "Invocation number ",b($COUNTER++), " PID ",b($$),".", hr; print end_html; } DESCRIPTION
CGI::Fast is a subclass of the CGI object created by CGI.pm. It is specialized to work well FCGI module, which greatly speeds up CGI scripts by turning them into persistently running server processes. Scripts that perform time-consuming initialization processes, such as loading large modules or opening persistent database connections, will see large performance improvements. OTHER PIECES OF THE PUZZLE
In order to use CGI::Fast you'll need the FCGI module. See http://www.cpan.org/ for details. WRITING FASTCGI PERL SCRIPTS
FastCGI scripts are persistent: one or more copies of the script are started up when the server initializes, and stay around until the server exits or they die a natural death. After performing whatever one-time initialization it needs, the script enters a loop waiting for incoming connections, processing the request, and waiting some more. A typical FastCGI script will look like this: #!/usr/bin/perl use CGI::Fast; &do_some_initialization(); while ($q = new CGI::Fast) { &process_request($q); } Each time there's a new request, CGI::Fast returns a CGI object to your loop. The rest of the time your script waits in the call to new(). When the server requests that your script be terminated, new() will return undef. You can of course exit earlier if you choose. A new version of the script will be respawned to take its place (this may be necessary in order to avoid Perl memory leaks in long-running scripts). CGI.pm's default CGI object mode also works. Just modify the loop this way: while (new CGI::Fast) { &process_request; } Calls to header(), start_form(), etc. will all operate on the current request. INSTALLING FASTCGI SCRIPTS
See the FastCGI developer's kit documentation for full details. On the Apache server, the following line must be added to srm.conf: AddType application/x-httpd-fcgi .fcgi FastCGI scripts must end in the extension .fcgi. For each script you install, you must add something like the following to srm.conf: FastCgiServer /usr/lib/cgi-bin/file_upload.fcgi -processes 2 This instructs Apache to launch two copies of file_upload.fcgi at startup time. USING FASTCGI SCRIPTS AS CGI SCRIPTS
Any script that works correctly as a FastCGI script will also work correctly when installed as a vanilla CGI script. However it will not see any performance benefit. EXTERNAL FASTCGI SERVER INVOCATION
FastCGI supports a TCP/IP transport mechanism which allows FastCGI scripts to run external to the webserver, perhaps on a remote machine. To configure the webserver to connect to an external FastCGI server, you would add the following to your srm.conf: FastCgiExternalServer /usr/lib/cgi-bin/file_upload.fcgi -host sputnik:8888 Two environment variables affect how the "CGI::Fast" object is created, allowing "CGI::Fast" to be used as an external FastCGI server. (See "FCGI" documentation for "FCGI::OpenSocket" for more information.) FCGI_SOCKET_PATH The address (TCP/IP) or path (UNIX Domain) of the socket the external FastCGI script to which bind an listen for incoming connections from the web server. FCGI_LISTEN_QUEUE Maximum length of the queue of pending connections. For example: #!/usr/bin/perl use CGI::Fast; &do_some_initialization(); $ENV{FCGI_SOCKET_PATH} = "sputnik:8888"; $ENV{FCGI_LISTEN_QUEUE} = 100; while ($q = new CGI::Fast) { &process_request($q); } CAVEATS
I haven't tested this very much. AUTHOR INFORMATION
Copyright 1996-1998, Lincoln D. Stein. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Address bug reports and comments to: lstein@cshl.org BUGS
This section intentionally left blank. SEE ALSO
CGI::Carp, CGI perl v5.14.2 2012-11-24 CGI::Fast(3pm)
All times are GMT -4. The time now is 11:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy