Solved

Env var issue

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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