07-24-2001
environmental varibles
flavor -- AIX 4.2.1
I am putting together some HTML pages, some of which contain forms. The problem pops up when I attempt to pass variables (from the forms) from one HTML page to a cgi-like page created using ksh.
I have used the $1 - $9 vars, but they do not work with the passing. With Perl I have done something close to this using $ENV.
The HTML tags (html, body, form . . .) all work within the ksh script, and I can echo new data into the page that the script creates, but I just can't get the form data from one page to pass to my ksh script.
My eye are weary from searching for the answer via uncountable web searches.
Thanks in advance guys and gals. . .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All,
Any chance someone could help me with this.... The script is reading from a file and for every line of input to the loop I am trying to assign a new varible. When i run the script I get the below errors. I have come to a bit of a dead end so any pointers/help would be very much... (1 Reply)
Discussion started by: oconnon2
1 Replies
2. UNIX for Dummies Questions & Answers
Given the following loop:
foreach id (DB4 GH4 CD4)
and the previously defined variables:
DB4sf DB4sfk DB4pp
GH4sf GH4sfk GH4pp
CD4sf CD4sfk CD4pp
how do i echo all of these variables using a one line command in the for loop. If it was a script, and assuming the previously mentioned... (8 Replies)
Discussion started by: wxornot
8 Replies
3. Shell Programming and Scripting
Hi,
I'm exporting an environmental variable from a C program using putenv function. I'm calling the exe of the C program from shell script. But when I display the environmental variables from the Shell script, My varaible is not getting displayed.
Can anyone please tell me how to get it in... (2 Replies)
Discussion started by: janemary.a
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want create env variable for "/ramakrsihna/scripts"
help me on this. (1 Reply)
Discussion started by: koti_rama
1 Replies
5. Shell Programming and Scripting
I need to split a long varible which is a whole line read from a file into fields and store them in an array, the fields are delimited by pipe and a field may contain white spaces.
I tried the following concept test and it has problem with field 5 which contain a space, appearently so because... (3 Replies)
Discussion started by: gratus
3 Replies
6. AIX
HI ALL,
I invoked this command "errpt -a | more " then I got tis message in the server
LABEL: EPOW_SUS_CHRP
IDENTIFIER: BE0A03E5
Date/Time: Thu Apr 10 19:37:57 SAUS
Sequence Number: 9038
Machine Id: 003AFDBC4C00
Node Id: jbvrprd
Class: H... (1 Reply)
Discussion started by: magasem
1 Replies
7. Shell Programming and Scripting
Working on a way to speed up my script output. I have a multiline file that I pull each line as a variable and post it on a webpage. It needs some help as it works but slow. I think I have too many cat, grep and sed going on but don't know what would work better.
#!/bin/sh... (5 Replies)
Discussion started by: numele
5 Replies
8. Shell Programming and Scripting
For example
test.sh:
test="teststring"
cmd=$1
$cmd
For some reason I'm NOT seeing "teststring" when I type: ./test.sh "echo $test"
Any ideas on how to get around this?
I've tried commands like:
./test.sh "echo $($test)"
./test.sh "echo '$test'"
And many variations to no... (6 Replies)
Discussion started by: secops
6 Replies
9. UNIX for Advanced & Expert Users
i want to set environmental variables in solaris and redhat.
it should show the current directory and the default shell should be bourne shell. along with it should show the hostname..
like this
hostname{/home/vipin/data}# ifconfig
Thanks in advanced.:wall:
Please use code tags.... (1 Reply)
Discussion started by: vipinkumarr89
1 Replies
10. UNIX for Dummies Questions & Answers
Hello all, I have a Mac OS X (10.7), and I need to set environment variables and paths for some programs I will be running. I have followed instructions and searched the Web for where to do this, but I can't seem to find an answer. I have tried using the VIM editor to write them into my .login,... (2 Replies)
Discussion started by: Tyler_92
2 Replies
LEARN ABOUT DEBIAN
bb-ack.cgi
BB-ACK.CGI(1) General Commands Manual BB-ACK.CGI(1)
NAME
bb-ack.cgi - Xymon CGI script to acknowledge alerts
SYNOPSIS
bb-ack.cgi?ACTION=action&NUMBER=acknum&DELAY=validity&MESSAGE=text
DESCRIPTION
bb-ack.cgi is invoked as a CGI script via the bb-ack.sh CGI wrapper.
bb-ack.cgi is passed a QUERY_STRING environment variable with the ACTION, NUMBER, DELAY and MESSAGE parameters.
PARAMETERS
ACTION is the action to perform. The only supported action is "Ack" to acknowledge an alert.
NUMBER is the number identifying the host/service to be acknowledged. It is included in all alert-messages sent out by Xymon.
DELAY is the time (in minutes) that the acknowledge is valid.
MESSAGE is an optional text which will be shown on the status page while the acknowledgment is active. You can use it to e.g. tell users
not to contact you about the problem, or inform them when the problem is expected to be resolved.
OPTIONS
--no-pin
bb-ack.cgi normally requires the user to enter the acknowledgment code received in an alert message. If you run it with this option,
the user will instead get a list of the current non-green statuses, and he may send an acknowledge without knowing the code.
--no-cookies
Normally, bb-ack.cgi uses a cookie sent by the browser to initially filter the list of hosts presented. If this is not desired, you
can turn off this behaviour by calling bb-ack.cgi with the --no-cookies option. This would normally be placed in the CGI_ACK_OPTS
setting in hobbitcgi.cfg(5)
--env=FILENAME
Loads the environment defined in FILENAME before executing the CGI script.
--debug
Enables debugging output.
FILES
$BBHOME/web/acknowledge_header
HTML header file for the generated web page
$BBHOME/web/acknowledge_footer
HTML footer file for the generated web page
$BBHOME/web/acknowledge_form
Query form displayed when bb-ack.cgi is called with no parameters.
ENVIRONMENT VARIABLES
BBHOME Used to locate the template files for the generated web pages.
QUERY_STRING
Contains the parameters for the CGI script.
BUGS
When using alternate pagesets, hosts will only show up on the acknowledgment page if this is accessed from the primary page in which they
are defined. So if you have hosts on multiple pages, they will only be visible for acknowledging from their main page which is not what you
would expect.
SEE ALSO
bbgen(1), bb-hosts(5), hobbitserver.cfg(5)
Xymon Version 4.2.3: 4 Feb 2009 BB-ACK.CGI(1)