Re: #! not a recognized internal or external command
The problem ended up being the extention of my script file. It was *.cmd as it was under my Sun OS. This force the cmd.exe to execute it and never allow the cygwin environment to take hold. "Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, Oct 02, 2003 at 03:30:28PM -0700, Neil Messmer wrote: > > I should also mention that the script was executed within a cygwin shell > > window when this error occurred. > > "Neil Messmer" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > I would have thought the paths set in your particuliar environment would > > > have enabled to the find the correct shell for proper execution. > > > > > > I am still convinced it is a setup issue as it works on another machine > > > here. OS versions and hardware are identical. > > > Then you're on your own. Check what's going wrong on your machine. > Regardless of what you're convinced of, it should be a hint that the > message "'BLA' is not recognized as an internal or external command,..." > is emitted by cmd.exe but not by any of the Unix shells. > > Corinna > > > > > "Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > > > On Thu, Oct 02, 2003 at 12:08:25PM -0700, Neil Messmer wrote: > > > > > I have just installed the latest version of cygwin and get the > > following > > > > > error message when running my scripts while running cygwin under Win > > XP. > > > It > > > > > does not matter what shell I specify for the script. > > > > > > > > > > My paths on the win pc is set to /usr/local/bin; /usr/bin; /bin; > > > > > /usr/x11r6/bin. > > > > > > > > > > The simple test script contains one line: > > > > > #! /bin/tsch > > > > > > > > s/tsch/tcsh > > > > > > > > but the *real* problem is that you're trying to start a shell script > > > > under cmd.exe. That won't work. The error message is generated by > > > > cmd.exe because it correctly doesn't recognize #! as a command. The > > > > #! syntax requires support by the starting application, in your case, > > > > by Cygwin. If the starting application is not a Cygwin shell, you > > > > must start the script as a parameter to the right shell: > > > > > > > > C:\foo> tcsh script-name > > > > > > > > Corinna > > > > > > > > -- > > > > Corinna Vinschen Please, send mails regarding Cygwin to > > > > Cygwin Developer mailto:[EMAIL PROTECTED] > > > > Red Hat, Inc. > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Problem reports: http://cygwin.com/problems.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Developermailto:[EMAIL PROTECTED] > Red Hat, Inc. > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: #! not a recognized internal or external command
I should also mention that the script was executed within a cygwin shell window when this error occurred. "Neil Messmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would have thought the paths set in your particuliar environment would > have enabled to the find the correct shell for proper execution. > > I am still convinced it is a setup issue as it works on another machine > here. OS versions and hardware are identical. > > "Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Thu, Oct 02, 2003 at 12:08:25PM -0700, Neil Messmer wrote: > > > I have just installed the latest version of cygwin and get the following > > > error message when running my scripts while running cygwin under Win XP. > It > > > does not matter what shell I specify for the script. > > > > > > My paths on the win pc is set to /usr/local/bin; /usr/bin; /bin; > > > /usr/x11r6/bin. > > > > > > The simple test script contains one line: > > > #! /bin/tsch > > > > s/tsch/tcsh > > > > but the *real* problem is that you're trying to start a shell script > > under cmd.exe. That won't work. The error message is generated by > > cmd.exe because it correctly doesn't recognize #! as a command. The > > #! syntax requires support by the starting application, in your case, > > by Cygwin. If the starting application is not a Cygwin shell, you > > must start the script as a parameter to the right shell: > > > > C:\foo> tcsh script-name > > > > Corinna > > > > -- > > Corinna Vinschen Please, send mails regarding Cygwin to > > Cygwin Developermailto:[EMAIL PROTECTED] > > Red Hat, Inc. > > > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: #! not a recognized internal or external command
I would have thought the paths set in your particuliar environment would have enabled to the find the correct shell for proper execution. I am still convinced it is a setup issue as it works on another machine here. OS versions and hardware are identical. "Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, Oct 02, 2003 at 12:08:25PM -0700, Neil Messmer wrote: > > I have just installed the latest version of cygwin and get the following > > error message when running my scripts while running cygwin under Win XP. It > > does not matter what shell I specify for the script. > > > > My paths on the win pc is set to /usr/local/bin; /usr/bin; /bin; > > /usr/x11r6/bin. > > > > The simple test script contains one line: > > #! /bin/tsch > > s/tsch/tcsh > > but the *real* problem is that you're trying to start a shell script > under cmd.exe. That won't work. The error message is generated by > cmd.exe because it correctly doesn't recognize #! as a command. The > #! syntax requires support by the starting application, in your case, > by Cygwin. If the starting application is not a Cygwin shell, you > must start the script as a parameter to the right shell: > > C:\foo> tcsh script-name > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Developermailto:[EMAIL PROTECTED] > Red Hat, Inc. > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: #! not a recognized internal or external command
I had already tried that but the results are the same. This same script works on another machine here with the same cygwin & win XP install. I am assuming it has to a registry setting in XP or some setup with cygwin that is not done correctly. "Vince Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > remove the space between #! and /bin/tcsh > > > -Original Message- > > From: Neil Messmer [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 02, 2003 8:08 PM > > To: [EMAIL PROTECTED] > > Subject: #! not a recognized internal or external command > > > > > > I have just installed the latest version of cygwin and get > > the following > > error message when running my scripts while running cygwin > > under Win XP. It > > does not matter what shell I specify for the script. > > > > My paths on the win pc is set to /usr/local/bin; /usr/bin; /bin; > > /usr/x11r6/bin. > > > > The simple test script contains one line: > > #! /bin/tsch > > > > ANy ideas? > > > > > > > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Problem reports: http://cygwin.com/problems.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
#! not a recognized internal or external command
I have just installed the latest version of cygwin and get the following error message when running my scripts while running cygwin under Win XP. It does not matter what shell I specify for the script. My paths on the win pc is set to /usr/local/bin; /usr/bin; /bin; /usr/x11r6/bin. The simple test script contains one line: #! /bin/tsch ANy ideas? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/