12-02-2015
Quote:
Originally Posted by
RavinderSingh13
Hello Arun,
Could you please change if [[ $hn = "us" ]] to if [[ "$hn" == "us" ]] and let me know if this helps.
Thanks,
R. Singh
This isn't likely to help. (It will help if and only if
hostname aborts or returns a host name containing whitespace characters.)
The problem shown in the trace is that the operand passed to the script (
sun) is not a choice in the case statement. Therefore, the
client_home variable is never set and the following test to determine if
$client_home expands to the name of a directory gets a syntax error.
The change I suggested in post #2 in this thread short-circuits the problem by exiting immediately if
client_home will not be set by the given operand.
These 2 Users Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
can any one help me with a perl script for automating file transfer ?
At each step i need to check for the success or failure .
I am trying to connect to the target system for a specified number of times.if it doesnt connect even after 3 retries then the script should exit.
and i have to... (8 Replies)
Discussion started by: sveera
8 Replies
2. Shell Programming and Scripting
Hi,
Can anyone help me out how to login on server using public key autorization.I want to use this on system.
Thanks in advance. (1 Reply)
Discussion started by: LochanM
1 Replies
3. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
4. HP-UX
hi,
I am using HPUX 11.31(Itanium) and HP 5100 printer.
I am using PCL5.nloo model script present in HPUX by default to print to printer.
I am finding issues in printing paper sizes and few other options.
Description of the problem:
When i give a print with option "half" and "Legal"... (4 Replies)
Discussion started by: meeraramanathan
4 Replies
5. Shell Programming and Scripting
#!/bin/bash
if ; then
echo "error"
fi
release_name=$3
version=$4
cd $2;
for line in `ls`
do
if ; then
echo " do ..."
$1 $2/$line $2/$line $release_name $version
fi (3 Replies)
Discussion started by: crackthehit007
3 Replies
6. Solaris
i cannot login as a user then it shows a error. su: no shell
i created a new user also. same error . cannot login user
i changed shell also
please help me urgently (6 Replies)
Discussion started by: sijocg
6 Replies
7. Shell Programming and Scripting
Hi,
This error is actually out of implementing the command posted here -
https://www.unix.com/shell-programming-scripting/155589-remove-blank-lines-merge-lines-shell.html
Here is the error i get -
awk: Input line xxxxx cannot be longer than 3,000 bytes.
The source line number is 1.... (1 Reply)
Discussion started by: dvah
1 Replies
8. Shell Programming and Scripting
Hi,
I have a challenging requiremant to be done in one day:(
there is directory in which a new directory gets created per hour i.e 24 directories per a day like below.
Dec 01 00:04 2011.12.12-23
Dec 01 01:11 2011.12.10-07
Dec 01 01:11 2011.12.10-08
Dec 01 01:11 2011.12.10-09
Dec 01... (2 Replies)
Discussion started by: mahesh Madpathi
2 Replies
9. Shell Programming and Scripting
Hi All,
I get the test result file daily after running the main test script. from the resultfile, need to fetch only server info and status and put them in tabular format in a file and as well in CSV format output file.
I tried using awk command but am not able to put them in tabluar... (6 Replies)
Discussion started by: Optimus81
6 Replies
10. Shell Programming and Scripting
Hi Gurus,
I am stuck with the step where i need to fetch the location & sales from the below procedure by taking it from table field using the for loop. any idea how this can be done in unix. From one column both the location and sales are taken out.
create or replace procedure newyork... (2 Replies)
Discussion started by: arun888
2 Replies
LEARN ABOUT SUSE
alter_operator
ALTER
OPERATOR(7) SQL Commands ALTER OPERATOR(7)
NAME
ALTER OPERATOR - change the definition of an operator
SYNOPSIS
ALTER OPERATOR name ( { lefttype | NONE } , { righttype | NONE } ) OWNER TO newowner
DESCRIPTION
ALTER OPERATOR changes the definition of an operator. The only currently available functionality is to change the owner of the operator.
You must own the operator to use ALTER OPERATOR. To alter the owner, you must also be a direct or indirect member of the new owning role,
and that role must have CREATE privilege on the operator's schema. (These restrictions enforce that altering the owner doesn't do anything
you couldn't do by dropping and recreating the operator. However, a superuser can alter ownership of any operator anyway.)
PARAMETERS
name The name (optionally schema-qualified) of an existing operator.
lefttype
The data type of the operator's left operand; write NONE if the operator has no left operand.
righttype
The data type of the operator's right operand; write NONE if the operator has no right operand.
newowner
The new owner of the operator.
EXAMPLES
Change the owner of a custom operator a @@ b for type text:
ALTER OPERATOR @@ (text, text) OWNER TO joe;
COMPATIBILITY
There is no ALTER OPERATOR statement in the SQL standard.
SEE ALSO
CREATE OPERATOR [create_operator(7)], DROP OPERATOR [drop_operator(7)]
SQL - Language Statements 2010-05-14 ALTER OPERATOR(7)