Solved

Env var issue

Posted on 2014-10-09
2
182 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu/Asterisk after upgrade Wav issue 19 55
Xymon customize http timeout 2 66
nagios remote hosts 9 46
Steps to follow for Maintenance of Servers 4 54
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 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

18 Experts available now in Live!

Get 1:1 Help Now