Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-28-2006, 02:26 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 12

Rep: Reputation: 0
Launch CGI script from shell

Hi, is it possible to launch a CGI script with parameters from the shell?
Old 06-28-2006, 02:44 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68

You can use a text based browser to browse sites with CGI scripts:

Or if it's local, and you've got apache running:
lynx http://localhost/something.cgi

links or links2 is/are another choice for a text (or console) based browser.

Is that what you mean?

Old 06-28-2006, 06:28 AM   #3
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
CGI scripts can be written in many languages like Perl or PhP.
Most of them can be run from the command line too.
The only disadvantage is that the code may not have all the input parameters it expects, which can
lead to errors of course.

So, please provide additional details on what you are trying to achieve.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cgi shell script: ssh not working kitmui Programming 2 04-21-2010 02:46 PM
shell script launch two apps webreake Programming 4 04-01-2006 07:29 PM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-11-2005 11:08 PM
HELP:write a CGI program with shell script supermyself Programming 3 06-12-2005 03:10 PM
can't launch java app from shell script... LonAllen Linux - Newbie 0 07-07-2003 08:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration