Error Message - ./dsp_svrconn.sh[41]: MBHD1: bad number


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error Message - ./dsp_svrconn.sh[41]: MBHD1: bad number
# 1  
Old 01-05-2007
Error Message - ./dsp_svrconn.sh[41]: MBHD1: bad number

Hi Experts,

I have a shell script in which I have the following if condition.

if [ $QMGRNAME -eq "GESTHD3" ]
then
CHLREP=`echo "$DSPLINE MCAUSER" | \
\opt\mqm\bin\runmqsc -e $QMGRNAME | \
"ALTER CHANNEL($CHANNEL) CHLTYPE(SVRCONN) MCAUSER('HAK')"`
echo "$CHLREP"
fi

When I run this script, though script runs but also I get this error message for every loop.

./dsp_svrconn.sh[41]: MBHD1: bad number


My script name is dsp_svrconn.sh.

Any help would be highly appreciated!!!
# 2  
Old 01-06-2007
Quote:
Originally Posted by hkhan12
if [ $QMGRNAME -eq "GESTHD3" ]
"-eq" is used to compare numbers. use "=" instead Smilie

hope this helps Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

File System Error: BAD SUPERBLOCK AT BLOCK 16: NUMBER OF DIRECTORIES OUT OF RANGE

Hi All, we are having a file system error in one of our servers. The server failed to boot in usual user mode. Instead boot with single user mode and requesting to run a FSCK manually to repair the corrupted. see the below output. Netra T2000, No Keyboard Copyright 2008 Sun Microsystems,... (5 Replies)
Discussion started by: Buddhike G
5 Replies

2. Solaris

Bad magic number error

So we have a new to us v240 server with no OS installed. It has an outdated version of OB and ALOM so before we install the OS we want to update both. We have a DVD with the latest OB patch burned on it. We do the boot cdrom command but receive the Bad Magic Number Error. Does an OS need to... (2 Replies)
Discussion started by: dunkpancakes
2 Replies

3. Solaris

Bad File Number

System Solaris 8 When I open a CONSOLE window the following starts scrolling: "ServiceCommand: :write: Bad FIle Number" This will continue to scroll without stopping. However, you can type while it is scrolling and login into root and even conduct business within the CONSOLE window. The... (1 Reply)
Discussion started by: Kevin1166
1 Replies

4. Shell Programming and Scripting

Executing expect script giving message as bad interpreter: Permission denied

Hi Gurus, I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as #!/usr/bin/expect-5.43 -f spawn telnet localhost 2233 expect "password:" send "secret\r" send "i data.cnbc.com\r" send "exit\r" expect eof When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 Replies

5. UNIX for Advanced & Expert Users

Bad Number Error

What is wrong with my syntax, I am getting bad number error. The following lines of code get the value from INI file but the variable is a combination of multiple variables. When compiling all together, I get a bad number error or changing the '((' with '{{' gets me bad substitution error. The... (2 Replies)
Discussion started by: moan71
2 Replies

6. Filesystems, Disks and Memory

Bad Magic Number

Dear All, i have a SCSI hard disk drive i'm installing on it solaris 5 and the workstation is sun sparc, i made an image of this H.D using Norton Ghost 6, so i took off the SCSI H.D from the sun workstation and put it on a Compaq server then i booted the server from the Norton Ghost floppy disk... (0 Replies)
Discussion started by: wesweshahaha
0 Replies

7. Shell Programming and Scripting

How can you Test for bad number

Anyone know the code to test for bad numbers? For example in ksh... Want the user to input an integer, but they input characters. read number while (number = letter) read number //until valid number is inputted thx for any help!! :confused: (3 Replies)
Discussion started by: gsxpower
3 Replies

8. Programming

getc(stdin) receives bad message. PLEASE HELP !!

Hello everybody, I have a C program that uses getc to read messages from the stdin. It stops when it receives an EndOfMessage or EndOfTransmission char (0x03 or 0x04). while ((c = getc(stdin)) && !IsEndChar(c) && (iMsgLen < MAX_LEN_MESSAGE)) { \\treatment ....... (1 Reply)
Discussion started by: Majid
1 Replies

9. Shell Programming and Scripting

"bad number" message

Hi, running a script fine , i get twice the following message and whether i put "set -x" , i don't see what's going wrong : /users/notes01/scripts/sad/util/verif_boot_notes.ksh: Ma: bad number any ideas ? regards Christian (4 Replies)
Discussion started by: Nicol
4 Replies

10. UNIX for Advanced & Expert Users

bad magic number

Hi, when installing a piece of third part software I get the error "Bad magic number" at one point when it tries to use libraries from the bea tuxedo server. Am I correct that this means that the software is expecting 32bit while I'm on 64bit? Is there a way around it or can it only be solved... (5 Replies)
Discussion started by: rein
5 Replies
Login or Register to Ask a Question