Solved

Env var issue

Posted on 2014-10-09
2
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

737 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