Sponsored Content
Operating Systems Solaris Triggering UNIX command from Web Browser Post 302404380 by hergp on Tuesday 16th of March 2010 10:57:01 AM
Old 03-16-2010
So what you need is basically a cgi script that is called in the action handler of a html form. You can write cgi scripts in many programming languages, many people prefer perl for this, but you can also use shellscripts.

If you write a shellscript, you can user the environment variable $QUERY_STRING supplied by the webserver and perform actions based on its contents.

If you want to run the script under a different userid than the webserver you need a mechanism like sudo.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Web browser and web server for Unix

Hi there all I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10. If you know where I can get these free via FTP, please contact me as soon as possible!! Thanks, Mark (1 Reply)
Discussion started by: mleathers
1 Replies

2. Linux

web browser from konsole

hi experts, i'm running red hat linux, consider there's no visual interface, no X server... actually there is one but it's written in Python! what i need is to intall a decent web browser on it! is it possible? and i only have abt 100 MBs of free disk space... (1 Reply)
Discussion started by: elzalem
1 Replies

3. Shell Programming and Scripting

Triggering my Unix script....

Hi All, i dont have any idea about perl scripting... i need some suggestion so that i can put my effort to find out the solution:D let me explain....one of my tedious task which will taken care by Unix shell script which i prepared. its a kind of routine work that i am running the... (4 Replies)
Discussion started by: Shahul
4 Replies

4. Solaris

Can't open netscape web-browser

I am working in solaris 9 and i want to work with web-browser(netscape). but when I am openning it,it shows the message -- An error occurred reading the startup configuration file.Please contact ur administrator./.netscape/preferences.js,line 66:unterminated string literal.t,127.0.0.1 please... (3 Replies)
Discussion started by: smartgupta
3 Replies

5. Solaris

Web browser not opening

On clicking on my WEB BROWSER . no window is appearing , only a dialog box appearing with named "ALERT" any nothing else. What is browser package name , which is by default in Solaris 10 (3 Replies)
Discussion started by: kush singh
3 Replies

6. What is on Your Mind?

The Dillo Web Browser

Hello, Have you all noticed that the Dillo web browser always reports bugs just about on every web page. Richard Stallman's Personal Page However some, but not many have none. cheers (2 Replies)
Discussion started by: nigelc
2 Replies

7. Web Development

What is Your Favorite Web Browser?

OK, please vote on your favorite web browser and comment why! Only currently supported browers please! Thanks. PS: I am a big FireFox fan. FireFox add-ons rock! (61 Replies)
Discussion started by: Neo
61 Replies

8. UNIX for Dummies Questions & Answers

Practice UNIX on web Browser?

To practice SQL, there is a very good website called www.sqlfiddle.com no need of installing any external software, it can do almost anything in PL/SQL and Oracle. In a similar manner, is there a good website where i can practice Unix commands on a broswer? I mean, it should be able to execute... (1 Reply)
Discussion started by: Manjunath B
1 Replies
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)
All times are GMT -4. The time now is 05:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy