Solved

Env var issue

Posted on 2014-10-09
2
179 Views
Last Modified: 2014-10-09
I am using RHEL 6.5

From this site:

http://usuaris.tinet.cat/sag/mq_cli.htm

It says to set the following env var

set MQSERVER=SYSTEM.ADMIN.SVRCONN/TCP/10.14.0.20(1414)

Open in new window


But when ido I get the following error:

[root@x240perf2 etc]# set MQSERVER=SYSTEM.ADMIN.SVRCONN/TCP/10.14.0.20(1414)
-bash: syntax error near unexpected token `('

Open in new window


How do I resolve this?

Thanks
0
Comment
Question by:Anthony Lucia
2 Comments
 
LVL 84

Assisted Solution

by:ozo
ozo earned 250 total points
ID: 40371418
set MQSERVER='SYSTEM.ADMIN.SVRCONN/TCP/10.14.0.20(1414)'
0
 
LVL 7

Accepted Solution

by:
Stampel earned 250 total points
ID: 40371426
Your problem is because its a windows example (i can see this due to the % in the next command : ECHO %MQSERVER%)
Under linux , just use this :
MQSERVER="SYSTEM.ADMIN.SVRCONN/TCP/10.14.0.20(1414)"
echo $MQSERVER (will show you the result)

or

export MQSERVER="SYSTEM.ADMIN.SVRCONN/TCP/10.14.0.20(1414)"
echo $MQSERVER (will show you the result)

Dont forget double quotes ;)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now