Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed cygwin on my windows XP desktop on C:. It works fine except when I launch a .ksh. I had this error message :

bash: ./xxx.ksh: /bin/ksh : Bad interpreter:No such file or directory

I 've looked in the /bin folder with ls -al ksh and I found ksh.exe.lnk (a shortcut in my windows explorer. The target of this shortcut exists on my filesystem - pdksh.exe). I 've changed in my xxx.ksh




And it works fine, but that's a ponctual solution...

share|improve this question
None of my dictionaries include "ponctual". What does it mean? – Dennis Williamson Dec 9 '10 at 17:48
punctual seems to be the right word, sorry english is not my native language. – jayjaypg22 Dec 10 '10 at 8:55
up vote 0 down vote accepted

Did you create the symbolic link with cygwin, or did you create it as a shortcut in windows? The links cygwin creates are compatible with windows, but shortcuts you create in windows aren't always compatible with cygwin unless you manually change them. See this.

Use ln -s /bin/pdksh.exe /bin/ksh in cygwin to create the symlink (see here).

Edit: fixed link direction

share|improve this answer
The shortcut is provided by the cygwin setup. – jayjaypg22 Dec 9 '10 at 15:00
ln -s /bin/pdksh.exe /bin/ksh is the right answer, thanks – jayjaypg22 Dec 9 '10 at 15:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.