Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

#!/bin/ksh

in

#!/bin/pdksh

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.