Sponsored Content
Top Forums Shell Programming and Scripting how to verify sqlplus not installed on solaris Post 302230966 by mmunir on Monday 1st of September 2008 06:44:16 AM
Old 09-01-2008
It is below:

which $ORACLE_HOME/bin/sqlplus > /dev/null 2> /dev/null

if [ $? != 0 ]; then
echo "ERROR: Either sqlplus is not available on this machine or ORACLE_HOME is configured wrongly in install.sh"
exit 1
fi
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris (verify 64 or 32 bit

Hello !! Does anyone know how can I verify if my Solaris is 32 or 64 bit ?? Thank you ! Witt (3 Replies)
Discussion started by: witt
3 Replies

2. UNIX for Dummies Questions & Answers

Just installed Solaris 8 but....

Hello again, Well i went ahead with my solaris installation tonight (on my pc) and it all appeared to work ok. Unfortunately, i am unable to use the system yet because it gives me this horrible message straight after it boots up: "The X-server can not be started on display :0..." It... (4 Replies)
Discussion started by: timresh
4 Replies

3. Solaris

just installed Solaris 10 x86

Hi, I've just installed solaris 10 on one of my old PC's (a 1ghz 256M PC). I think the installation worked ok but when I reboot it I can only login via the command line console and not the nice CDE interface. Has anyone seen this before? Its probable something simple I'm doing wrong. ... (4 Replies)
Discussion started by: fishman2001
4 Replies

4. UNIX for Dummies Questions & Answers

Verify Hardware installed on HP-UX 11

Hi - Basic question from newbie I need to find out how to verify hardware installed on HPUX server. Mid-range server - as in i need to prove to customer that a specific cpu is installed, so much memory is installed, etc. PLEASE HELP. TA (1 Reply)
Discussion started by: hoffies
1 Replies

5. HP-UX

Verify Hardware installed HP-UX11

Hi - Basic question from newbie I need to find out how to verify hardware installed on HPUX server. Mid-range server - as in i need to prove to customer that a specific cpu is installed, so much memory is installed, etc. PLEASE HELP. TA (16 Replies)
Discussion started by: hoffies
16 Replies

6. Solaris

How to verify Sun Solaris installation

Does anybody have an idea, how to verify Sun Solaris installation? (3 Replies)
Discussion started by: agarwal
3 Replies

7. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

8. Red Hat

How to verify the current NIC driver version installed in RHEL5.3??

Guys, Can you help me how to verify the current installed NIC driver version in RHEL5.3? Thanks.:D (1 Reply)
Discussion started by: shtobias
1 Replies

9. Solaris

Solaris 10 installed in vmware

I had no idea where I should post before i posting this . I have googled many many articles about how I share my host win 7 file into my vmware 9 solaris 10 system but what the solutions I found are all not work for me. for example VMware Communities: file sharing - Windows XP guest -...... (3 Replies)
Discussion started by: SSUUser
3 Replies

10. Shell Programming and Scripting

How-to verify if my package installed successfully

Can you please let me know how can i verify /check inside the script if the below to package installation commands are successful or if they failed for any reasons? 1. pkgadd -a $INSTP/install/dadmin -d $INSTP/install/apachesrv.pkg 2. pkgadd -a $INSTP/install/dadmin -d... (6 Replies)
Discussion started by: mohtashims
6 Replies
escape(1)							Mail Avenger 0.8.3							 escape(1)

NAME
escape - escape shell special characters in a string SYNOPSIS
escape string DESCRIPTION
escape prepends a "" character to all shell special characters in string, making it safe to compose a shell command with the result. EXAMPLES
The following is a contrived example showing how one can unintentionally end up executing the contents of a string: $ var='; echo gotcha!' $ eval echo hi $var hi gotcha! $ Using escape, one can avoid executing the contents of $var: $ eval echo hi `escape "$var"` hi ; echo gotcha! $ A less contrived example is passing arguments to Mail Avenger bodytest commands containing possibly unsafe environment variables. For example, you might write a hypothetical reject_bcc script to reject mail not explicitly addressed to the recipient: #!/bin/sh formail -x to -x cc -x resent-to -x resent-cc | fgrep "$1" > /dev/null && exit 0 echo "<$1>.. address does not accept blind carbon copies" exit 100 To invoke this script, passing it the recipient address as an argument, you would need to put the following in your Mail Avenger rcpt script: bodytest reject_bcc `escape "$RECIPIENT"` SEE ALSO
avenger(1), The Mail Avenger home page: <http://www.mailavenger.org/>. BUGS
escape is designed for the Bourne shell, which is what Mail Avenger scripts use. escape might or might not work with other shells. AUTHOR
David Mazieres Mail Avenger 0.8.3 2012-04-05 escape(1)
All times are GMT -4. The time now is 02:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy