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.
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.
4 answers
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:
Cheers,
Patrick
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
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.
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.
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.
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.
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.
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