Solved

Env var issue

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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 video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 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