LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-28-2006, 02:26 AM   #1
alex986best
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
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
?

You can use a text based browser to browse sites with CGI scripts:
lynx http://website.com/something.cgi

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?

Cool
 
Old 06-28-2006, 06:28 AM   #3
timmeke
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 PM.

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