You are browsing the archive for shell.

syntax error near unexpected token `(‘

August 4, 2012 in Database, Linux

You may face this issue when you try to execute a command on the Linux shell. I faced this issue when trying to execute the following DB2 command on the server Linux server using the putty shell:

db2text create index someindex for text on someTable(someField) CONNECT TO someDB;

In order to fix this issue, I have to set \ before every ( as shown below:

db2text create index someindex for text on someTable\(someField\) CONNECT TO someDB;

Another solution is to add double quotes on the command as follows:

db2text "create index someindex for text on someTable(someField) CONNECT TO someDB";

Hudson java.io.IOException: Cannot run program “sh” resolution

May 4, 2012 in Continuous Integration

You may face this error while working with Hudson and trying to run a new Job:

hudson java.io.IOException: Cannot run program "sh"

This error happens because Hudson is not aware about the shell path. In order to solve this issue, select:
Manage Hudson -> Configure System -> Shell and set the shell path in the Shell executable field as shown in the screenshot below:
.

This is all about this error.

Skip to toolbar