X-Spam-Check-By: sourceware.org Date: Tue, 29 Nov 2005 12:09:37 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Aldi Kraja cc: cygwin AT cygwin DOT com Subject: Re: Cygwin and (Linux or Unix) env: running applications In-Reply-To: <438C89ED.3020804@wustl.edu> Message-ID: References: <438C89ED DOT 3020804 AT wustl DOT edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, 29 Nov 2005, Aldi Kraja wrote: > Hi, > > 1. I have set two symbolic links under the /usr/local/bin/ > for SAS (sas) and SPLUS (splus70) for windows (Two statistical packages that > reside in my desktop with Microsoft XP OS). > [snip] > > When I use SAS to invoke the same command: > %sysexec splus70 /BATCH c:\\aldi2\\splus_test\\batch.txt > c:\\aldi2\\splus_test\\batch.out c:\\aldi2\\splus_test\\batch.err ; > > or > X 'splus70 /BATCH c:\\aldi2\\splus_test\\batch.txt > c:\\aldi2\\splus_test\\batch.out c:\\aldi2\\splus_test\\batch.err'; > > or > call system('splus70 /BATCH c:\\aldi2\\splus_test\\batch.txt > c:\\aldi2\\splus_test\\batch.out c:\\aldi2\\splus_test\\batch.err'); > > cygwin responds with a window at C:\ WINDOWS\system32\cmd.exe > > 'splus70' is not recognized as internal or external command, operable > program or batch file > c:\aldi2\splus_test> > > Do you know if cygwin is providing a different general path to the > programs such as SAS? > Any suggestions how can I tell SAS that "splus70" is present in the > general path of cygwin? First off, please don't hijack an unrelated thread for your questions -- if you have a separate question, please start a new thread. Secondly, Windows programs (like SAS) don't understand Cygwin symlinks. Either let SAS know where the real SPLUS lives, or spawn a Cygwin process that will understand the symlink (e.g., something like call system('bash -c "splus70 /BATCH c:\\aldi2\\splus_test\\batch.txt c:\\aldi2\\splus_test\\batch.out c:\\aldi2\\splus_test\\batch.err"'); ). HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/