AAAHHH!! I've made a perl program that you can run on a web browser. This program needs to be run everyday, and I don't want to have to run it everyday. The problem is when I try running the program from my terminal, all it does is print stuff to the terminal page (the program involves a lot of... (4 Replies)
I wrote a script to automate user account verification against peoplesoft. Now I want to make it available to my peers via the web. It is running on Solaris.
I have the form written, but am not sure how to make it work. I think the form should call a perl cgi when submitted. The cgi should call... (7 Replies)
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)
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)
Hi guys,
got a problem with a perl cgi script over here. I need it to run a system command to get the status of a process. Unfortunately the process is owned by a specific user and only this user can get its status. So i tried running the command from the perl cgi with "su", but then i get the... (12 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is a problem I am having with my 2 semester senior project. I have a LAMP server running Ubuntu 9.10 with... (8 Replies)
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)
I am having trouble with bash. I am trying to put a command in an if statement and then compare it to a string.
This works perfectly.
echo $(ipcs | grep Shared | awk '{print $2}')When I put it in an if statement I get some problems.
$ if ; then echo expression evaluated... (10 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
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
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)