08-07-2008
Maybe you can change the cgi script to show its output in plain text with an option (or maybe if some of the standard CGI variables are unset, indicating that it is being run from the command line); or else, pipe the output to something which strips out the HTML tags, such as a simple sed script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All
I want to call a perl program from my shell script. Please help me. I want to call through URL only. Like " http://www.test.com/CGI-bin/test?test=value"
Please help to write this script. Thanx in advance.
Thanking you
Regards
Deepak Xavier (0 Replies)
Discussion started by: DeepakXavier
0 Replies
2. Shell Programming and Scripting
I have created abc.sh file which will set the environment variables (UNIX env variables as well as ORACLE required variables like ORACLE_SID,ORACLE_HOME etc) and then calls a function file which checks for starts some logs and then it will try to execute the .sql file. The .sh, function file are as... (1 Reply)
Discussion started by: sskc
1 Replies
3. Shell Programming and Scripting
Hello everybody
I need help calling sql file from shell script.
Can anyone help me creating a small shell script which calls an sql file .
The .sql file should contain some select statements like
select emp_no from emp_table;
select emp_id from emp_table;
And the results should be... (6 Replies)
Discussion started by: dummy_needhelp
6 Replies
4. UNIX for Advanced & Expert Users
Hi
I have a shell script that call a sql file. The sql file will create a spool file.
My requirement is, when ever i get an OS error like file not found. I have to log it in a log file.
Could some who worked in a like scenario help me by giving the code sample.
Many Thanks.. (1 Reply)
Discussion started by: chintapalli001
1 Replies
5. Shell Programming and Scripting
Hi,
I want to call a sql file in my shell script. see the below code:-
if ]
then
(
isql -U${S_USER} -S${S_SERV} -w100 -b -h0 <<ENDSQL | sed -e "s/Password://"
${S_PWD}
set nocount on
go
use ${S_DB}
go
// need to call a file name... (16 Replies)
Discussion started by: dazdseg
16 Replies
6. Shell Programming and Scripting
Hi,
I am calling a sql file script.sql from shell script and passing few parameters also as shown below:
sqlplus -S id/password @script.sql $param1 $param2
Now,In sql file I have to create a extract text file after querying oracle tables based on the parameters passed(param1,param2) as... (7 Replies)
Discussion started by: anil029
7 Replies
7. Shell Programming and Scripting
I have a master shell script which calls some 40 shell scripts. All the shell scripts calls a sql file which executes some sql statements.
I run these scripts in parallel such that it saves me time. When i executed them i saw some strange behavior.
Firstly, I found that some scripts among the 40... (1 Reply)
Discussion started by: sushi
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want... (1 Reply)
Discussion started by: sathish.tn
1 Replies
9. Shell Programming and Scripting
Hi All,
I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want... (3 Replies)
Discussion started by: sathish.tn
3 Replies
10. Programming
Hi,
I am having two individual scripts
Script 1): CGI script - is a simple script which trigger bash script
Script 2): Bash script - is a script which execute which collects file system utilization information from all the Unix servers
If I am executing CGI script manually from command... (2 Replies)
Discussion started by: Naveen.6025
2 Replies
LEARN ABOUT DEBIAN
bb-snapshot.cgi
BB-SNAPSHOT.CGI(1) General Commands Manual BB-SNAPSHOT.CGI(1)
NAME
bb-snapshot.cgi - CGI program to rebuild the Xymon webpages for a specific point in time.
SYNOPSIS
bb-snapshot.cgi
DESCRIPTION
bb-snapshot.cgi is invoked as a CGI script via the bb-snapshot.sh CGI wrapper. It rebuilds the Xymon web pages to the look they had at a
particular point in time, based upon the historical information logged about events.
bb-snapshot.cgi is passed a QUERY_STRING environment variable with the following parameters:
mon (Start month of the snapshot)
day (Start day-of-month of the snapshot)
yr (Start year of the snapshot)
hour (Start hour of the snapshot)
min (Start minute of the snapshot)
sec (Start second of the snapshot)
The "month" parameters must be specified as the three-letter english month name abbreviation: Jan, Feb, Mar ...
"day" must be in the range 1..31; "yr" must be specified including century (e.g. "2003"). "hour" must be specified using a 24-hour clock.
All of the processing involved in generating the report is done by invoking bbgen(1) with the proper "--snapshot" option.
OPTIONS
--env=FILENAME
Load environment from FILENAME before executing the CGI.
bbgen-options
All options except "--env" are passed on to the bbgen(1) program building the snapshot files.
ENVIRONMENT VARIABLES
BBGENSNAPOPTS
bbgen options passed by default to the bb-snapshot.cgi script. This happens in the bb-snapshot.sh CGI wrapper script.
BBHOME Home directory of the Xymon server files
BBSNAP Directory where generated snapshots are stored. This directory must be writable by the userid executing the CGI script, typically
"www", "apache" or "nobody". Default: $BBHOME/www/snap/
BBSNAPURL
The URL prefix to use when accessing the reports via a browser. Default: $BBWEB/snap
SEE ALSO
bbgen(1), bb-hosts(5), hobbitserver.cfg(5)
Xymon Version 4.2.3: 4 Feb 2009 BB-SNAPSHOT.CGI(1)