Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Problems using the copySettings script

Hi,

I am trying to copy the project settings from one Project Area on one server to another Project Area on another and I get a syntax error when running the copySettings.sh script.

I'm running on AIX and get the following error:

ksh93 ./copySettings.sh -s https://jazzc03.hursley.ibm.com:9443/ -c qm -u HURJAZZ@uk.ibm.com -p xxxxxxxx -a Sterling+Template+Master -d https://jazzc02.hursley.ibm.com:9443/ -e qm -n HURJAZZ@uk.ibm.com -w xxxxxxxx -r Sterling+Template+Master

./copySettings.sh: line 78: \(-1\): arithmetic syntax error

Does anyone have any ideas?

Cheers,

Sam Sultana.

0 votes



4 answers

Permanent link
Hi Sam,

I have not worked specifically with the copySettings script, but in general you need to wrap parameters in double-quotes when running commands from the console, especially if they contain characters which have "special" meanings on the OS you are using -- in this case, AIX uses the forward-slash character (/) to denote path structure.

Try this:
./copySettings.sh -s "https://jazzc03.hursley.ibm.com:9443/" -c qm -u "HURJAZZ@uk.ibm.com" -p xxxxxxxx -a "Sterling+Template+Master" -d "https://jazzc02.hursley.ibm.com:9443/" -e qm -n "HURJAZZ@uk.ibm.com" -w xxxxxxxx -r "Sterling+Template+Master" 


Cheers,
Patrick

1 vote


Permanent link
Hi Patrick,

I tried what you suggested and wrapped those strings with 'special' characters in quotes, but it made no difference I still get the same syntax error in the script.

Do you know if anyone successfully use this script?

I almost get the impression that this script has not been tested?

Cheers,

Sam.

0 votes


Permanent link
Hi Patrick,

I think I have solved one of the problems with the copySettings.sh script.

There appears to be a genuine syntax error in the script, changing the following lines gets the script to work:

Change line 78 from:-

if ; then

To:-

if ; then

Gets the script to run... But...

Unfortunately it then calls CURL which we do not have installed on out AIX systems as standard as it is OPEN Source and we have to very careful as which Open Source packages we install on our ITCS 104 Group 1 boxes.

Cheers,

Sam.

0 votes


Permanent link
Hi Patrick,

If you look at the couple of other appends I have made to this thread you can see that I still have problems...

I have now managed to get CURL installed on our Test Jazz Server and tried running the copySettings.sh script again...

The problem I now have is that the version CURL we are allowed to install on AIX does not support the -k/--insecure option, as this permits insecure connection and transfers which break the ITCS104 rules for a Group 1 production server.

Therefore, we are not able to use the copySettings.sh script.

Cheers,

Sam.




Hi Sam,

I have not worked specifically with the copySettings script, but in general you need to wrap parameters in double-quotes when running commands from the console, especially if they contain characters which have "special" meanings on the OS you are using -- in this case, AIX uses the forward-slash character (/) to denote path structure.

Try this:
./copySettings.sh -s "https://jazzc03.hursley.ibm.com:9443/" -c qm -u "HURJAZZ@uk.ibm.com" -p xxxxxxxx -a "Sterling+Template+Master" -d "https://jazzc02.hursley.ibm.com:9443/" -e qm -n "HURJAZZ@uk.ibm.com" -w xxxxxxxx -r "Sterling+Template+Master" 


Cheers,
Patrick

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 03 '12, 7:07 a.m.

Question was seen: 7,817 times

Last updated: Feb 03 '12, 7:07 a.m.

Confirmation Cancel Confirm