10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I want to run this script on my CentOS 6 via browser :
________________________________________________________________________________________________
#!/bin/sh
echo Username?
read MY_NAME
echo Provisional file name?
read MY_FILE
echo File NAME you want to save?
read MY_FILE2... (16 Replies)
Discussion started by: juta2020
16 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have requirement for automation, wanna confirm whether is it possible in shell scripting.
1) Need to read data from excel sheet
2) And upload the details in html page
I know first requirement is possible by converting excel into csv form, but not sure about the second one.
If... (6 Replies)
Discussion started by: stew
6 Replies
3. Shell Programming and Scripting
Hello All,
Could you please help me to explain that how do I pass textboxes values while running a shell script which need some arguments while running it and should be invoked after the button click.
Here is an example.
The first CGI is:
#!/bin/ksh
echo "Content-Type: text/html"... (4 Replies)
Discussion started by: RavinderSingh13
4 Replies
4. Shell Programming and Scripting
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
5. Web Development
I have some industrial ARM linux board with 2.6.34 Linux on it with Busybox
v1.15.0.
The https.conf is located in /etc/ and contains:
H:/root/web
In the www directory I also have 'cgi-bin' folder with chmod 777 and in that folder a file called 'testcgi'.
Now I start the server with... (1 Reply)
Discussion started by: Roboserg
1 Replies
6. UNIX and Linux Applications
hi there
im currently in the process of creating a website for use basically within our org. im using a os x machine and installed MAMP - which includes Apache, mysql... the site will be used by techs to primarily install pkgs files onto os x devices. i would like to have buttons or hyperlinks... (2 Replies)
Discussion started by: sheshe
2 Replies
7. Shell Programming and Scripting
Hi guys
I'm relativley new to Perl, and have not touched html before, im trying to write a cgi script that prints all images on a single html page from a given directory. Im using perl to gather stats, rrdtool to update and create graphs now i just need to print these graphs all onto 1 index.cgi... (3 Replies)
Discussion started by: jeffersno1
3 Replies
8. Web Development
Hi,
I have html page in my unix machine(server), which I will open with firefox or mozilla available in unix machine. Firefox or mozilla will be opened using x windows.
Since I have access to unix machien(like other users) and this HTML page is for user having access to Unix machine, I see no... (7 Replies)
Discussion started by: vamanu9
7 Replies
9. Shell Programming and Scripting
Hi,
I'm learning some simple cgi scripting. I can make a script like this,
so my browser shows "Hello World"
/www/cgi-bin/name.sh
---
#!/bin/sh
MyName=World
echo "<html> Hello $MyName </html>"
---
What I'd like is to have a separate html and script files in the cgi folder so ... (1 Reply)
Discussion started by: Performer
1 Replies
10. Shell Programming and Scripting
Hey - I am new to cgi scripting... just writing a script to output df -k output to html page... but I cannot get the df lines on separate lines on the page, it all comes out on one line and is not very readable.. any suggestions?
My script is below - please keep in mind I am only new to it so... (1 Reply)
Discussion started by: frustrated1
1 Replies
AppConfig::CGI(3) User Contributed Perl Documentation AppConfig::CGI(3)
NAME
AppConfig::CGI - Perl5 module for processing CGI script parameters.
SYNOPSIS
use AppConfig::CGI;
my $state = AppConfig::State->new(\%cfg);
my $cgi = AppConfig::CGI->new($state);
$cgi->parse($cgi_query);
$cgi->parse(); # looks for CGI query in environment
OVERVIEW
AppConfig::CGI is a Perl5 module which implements a CGI interface to AppConfig. It examines the QUERY_STRING environment variable, or a
string passed explicitly by parameter, which represents the additional parameters passed to a CGI query. This is then used to update
variable values in an AppConfig::State object accordingly.
AppConfig::CGI is distributed as part of the AppConfig bundle.
DESCRIPTION
USING THE AppConfig::CGI MODULE
To import and use the AppConfig::CGI module the following line should appear in your Perl script:
use AppConfig::CGI;
AppConfig::CGI is used automatically if you use the AppConfig module and create an AppConfig::CGI object through the cgi() method.
AppConfig::CGI is implemented using object-oriented methods. A new AppConfig::CGI object is created and initialised using the new()
method. This returns a reference to a new AppConfig::CGI object. A reference to an AppConfig::State object should be passed in as the
first parameter:
my $state = AppConfig::State->new();
my $cgi = AppConfig::CGI->new($state);
This will create and return a reference to a new AppConfig::CGI object.
PARSING CGI QUERIES
The "parse()" method is used to parse a CGI query which can be specified explicitly, or is automatically extracted from the "QUERY_STRING"
CGI environment variable. This currently limits the module to only supporting the GET method.
See AppConfig for information about using the AppConfig::CGI module via the cgi() method.
AUTHOR
Andy Wardley, "<abw@wardley.org<gt">
COPYRIGHT
Copyright (C) 1997-2007 Andy Wardley. All Rights Reserved.
Copyright (C) 1997,1998 Canon Research Centre Europe Ltd.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
AppConfig, AppConfig::State
perl v5.16.3 2007-05-30 AppConfig::CGI(3)