10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
I have installed oracle in Solaris machine and unable to set the env variable. I tried to put the env variable in .dtprofile file but didn't help. So everytime I login in need to run the command and export the variable. Kindly suggest where I am doing wrong.Pls excuse as I am not too... (2 Replies)
Discussion started by: Rossdba
2 Replies
2. Shell Programming and Scripting
Hello,
I know this should be simple but cant find a solution yet.I have the following in a sh script called "var"
#!/bin/bash
var1=0
And on another script called "main" I use a if construct:
#!/bin/bash
. var
if
then
Do this
else
do that
fi
Now in "do this" part,I have to change... (8 Replies)
Discussion started by: vijai
8 Replies
3. Shell Programming and Scripting
I am wondering if there is away to increment a date in c shell. What I need to do is basic, but I lack the knowledge.
I have they following environmental variable in my job scripts
setenv YYYY `date '+%Y'`
I then set YYYY to be part of my output dataset name:
setenv dd_OUTPUTP... (1 Reply)
Discussion started by: jclanc8
1 Replies
4. Red Hat
i have a file that i need to edit and replace a single value with another. so i have two variables, $oldvalue and $newvalue but below doesn't work:
ed file.txt << EOF
,s/$oldversion/$newversion/g
wq
EOFi presume it's the $ that is the issue since it's actually special to ed. any suggestions?... (1 Reply)
Discussion started by: crimso
1 Replies
5. Solaris
What is the difference between ${variable} and $variable when used in a script? (2 Replies)
Discussion started by: orange47
2 Replies
6. Shell Programming and Scripting
Hi,
I want to get the value of the env varables using the ksh script. All the env variables are stored in a file.
Eg.
file1
$INPATH
$OUTPATH
myscirpt:
for name in `awk { print $1 } file1`
do
cd $name
done
i'm getting the error like $INPATH not found.
in the same script... (1 Reply)
Discussion started by: vij_krr
1 Replies
7. UNIX for Advanced & Expert Users
Hey all,
I have been using Ksh and in that I am setting Environment variables.
To set Env. Variables I have created my own file "BuildScript.sh" in which i have written :
export CLASSPATH=/somedir/some other dir/file:.
export PATH=/some dir/file:.
But when i am calling this... (4 Replies)
Discussion started by: varungupta
4 Replies
8. HP-UX
hi all,
i have one account for unix Tru64.
i can login this account and i do execute special shell script(login sqlplus, execute another shell, etc... ) on this account on my server.
but i can't run this shell from cron tab.
i think that become cron user envirnoment variables. (3 Replies)
Discussion started by: Tlg13team
3 Replies
9. Shell Programming and Scripting
hi i want to write a shell script to set environment variables . But i am not been able to set that for the current shell instead i have to spawn a new shell. Is there a way to set the env variable for the current shell using shell script in bash shell ?
Thnx (2 Replies)
Discussion started by: varun.81
2 Replies
10. Shell Programming and Scripting
I have been searching around the forums here trying to find a solution to my problem but not getting anywhere but closer to baldness.
I have a 20 column pipe "|" seperated text file. The 14th variable doesnt always exist, but will have the format of YYYYMM or YYYY if it does.
I need to take... (2 Replies)
Discussion started by: r0sc0
2 Replies
HOBBIT-CONFREPORT.CGI(1) General Commands Manual HOBBIT-CONFREPORT.CGI(1)
NAME
hobbit-confreport.cgi - Xymon Configuration report
SYNOPSIS
hobbit-confreport.cgi
DESCRIPTION
hobbit-confreport.cgi is invoked as a CGI script via the hobbit-confreport.sh CGI wrapper.
hobbit-confreport.cgi provides a plain HTML (Web) report of the Xymon configuration for a group of hosts; which hosts are included is
determined by the hosts available on the webpage from where the CGI script is invoked.
The configuration report include the hostnames, a list of the statuses monitored for each host, and if applicable any configuration set-
tings affecting these. Alerts that may be triggered by status changes are also included.
The report is plain HTML without any images included, and therefore suitable for inclusion into e-mails or other documents that may be
accessed outside the Xymon system.
OPTIONS
--critical
Report only on the statuses that are configured to show up on the Critical Systems view.
--old-nk-config
Use the deprecated NK tag in bb-hosts to determine if tests appear on the Critical Systems view.
--env=FILENAME
Loads the environment defined in FILENAME before executing the CGI script.
--area=NAME
Load environment variables for a specific area. NB: if used, this option must appear before any --env=FILENAME option.
--debug
Enables debugging output.
BUGS
Client-side configuration done in the hobbit-clients.cfg(5) is not currently reflected in the report.
Critical Systems view configuration is not reflected in the report.
SEE ALSO
bb-hosts(5), hobbit-alerts.cfg(5), hobbit-clients.cfg(5), xymon(7)
Xymon Version 4.2.3: 4 Feb 2009 HOBBIT-CONFREPORT.CGI(1)