Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Importance: Normal Sensitivity: Subject: "no such file or directory" using 'spawn' on EXPECT To: cygwin AT cygwin DOT com X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: "ROHIT X SINGH" Date: Fri, 28 Dec 2001 10:41:13 -0500 X-MIMETrack: Serialize by Router on D01ML255/01/M/IBM(Release 5.0.9 |November 16, 2001) at 12/28/2001 10:41:15 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Hi, I have installed cygwin(with expect package) on a number of Windows 2000 systems, and on all the systems EXCEPT ONE, I am able to spawn "cmd.exe" using the following command: C:\>expect expect1.1> spawn "C:\\winnt\\system32\\cmd.exe" /c echo PLEASEECHO spawn C:\winnt\system32\cmd.exe /c echo PLEASEECHO 2852 expect1.2> (It works as expected above) However, on the system which is unable to spawn it, I get the following : C:\>expect expect1.1> spawn "C:\\winnt\\system32\\cmd.exe" /c echo PLEASEECHO spawn C:\winnt\system32\cmd.exe /c echo PLEASEECHO couldn't execute "C:\winnt\system32\cmd.exe": no such file or directory while executing "spawn "C:\\winnt\\system32\\cmd.exe" /c echo PLEASEECHO" expect1.2> (I get an error as shown above) I have checked that cmd.exe does indeed exist at C:\winnt\system32\cmd.exe. I am using expect version 5.26 in all places. I am facing this problem on the latest installtion that I did off a nasa mirror yesterday. I tried reinstalling another mirror but faced the same problem. Other information: I had initially installed cygwin on D: drive, but later deleted it from D: drive, and reinstalled on C: drive. Could this be a cause of this error ? My cygwin PATH points to C:\cygwin\bin 'which sh' points to '/usr/bin/sh' I have checked the existence of /bin/sh on all systems. PLEASE HELP! :-) Thanks and Regards, Rohit -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/