Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in clearing cache in Cygwin.

Highlighted
Mahen M
Honored Contributor

Problem in clearing cache in Cygwin.

Hi,
I am trying to clear cache in one of our servers. I go into the bin directory in which the application is installed.

When I enter 'sh kRunCacheManager.sh' I am getting the below mentioned error.


C:\ProdApps\ITG\bin>sh kRunCacheManager.sh
./kVariables.sh: line 34: $'\r': command not found
./kVariables.sh: line 36: $'\r': command not found
./kVariables.sh: line 40: $'\r': command not found
./kVariables.sh: line 69: syntax error near unexpected token `$'{\r''
'/kVariables.sh: line 69: `get_valid_server_directory() {
kRunCacheManager.sh: line 36: C:\j2sdk1.4.2_12\bin/bin/java: No such file or dir
ectory


Other Servers works perfectly fine, Please advice what is problem with this server.

Regards,
Mahendran M
4 REPLIES

Re: Problem in clearing cache in Cygwin.

Hi,

looks like a problem with the 'end of line' style. DOS/Windows and Unix/Linux are using different styles to indicate the end of line.

During installation of Cygwin you have to decide which one Cygwin should use.

There come two tools with Cygwin to convert files between those two styles: dos2unix and unix2dos.

Try to use 'dos2unix kVariables.sh' to get rid of the first errors.
You should also check your JAVA_HOME variable, because kRunCacheManager.sh cannot find java.

Kind regards,
Michael
Mahen M
Honored Contributor

Re: Problem in clearing cache in Cygwin.

Hi,
We are getting strange errors, Can you Advice.

Regards,
Mahendran M

Re: Problem in clearing cache in Cygwin.

Sorry Mahendran,

haven't seen this error before.
Doesn't look like an PPM error, at least the 'KNTA' error number is missing.
So have you tried to clear the client java cache for the downloaded applications?

Kind regards,
Michael
Mahen M
Honored Contributor

Re: Problem in clearing cache in Cygwin.

Closing

Regards,
Mahendran M
//Add this to "OnDomLoad" event