delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/29/16:01:29

X-Spam-Check-By: sourceware.org
Message-ID: <438CC330.4040000@wustl.edu>
Date: Tue, 29 Nov 2005 15:08:00 -0600
From: Aldi Kraja <aldi AT wustl DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin and (Linux or Unix) env: running applications
References: <OF609EEA81 DOT F5085C04-ONC12570C2 DOT 0039B83F-C12570C2 DOT 003B1DED AT philips DOT com> <438C89ED DOT 3020804 AT wustl DOT edu> <Pine DOT GSO DOT 4 DOT 63 DOT 0511291205210 DOT 12956 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0511291205210.12956@slinky.cs.nyu.edu>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Thank you Igor,

Your suggestion was good, but did not resolve the problem. Somehow SAS 
was still missing the command by not invoking the symbolic links. After 
many trials here is the solution in case someone else has a similar problem:

Through SAS I created a run.sh file in which I added the following lines:

#! /usr/bin/tcsh

### run.sh file

splus70 /BATCH c:\\aldi2\\splus_test\\batch.txt c:\\aldi2\\splus_test\\batch.out c:\\aldi2\\splus_test\\batch.err


In SAS under a macro I do the following:

%sysexec chmod +x c:\aldi2\splus_test\run.sh;

%syexec tcsh c:\aldi2\splus_test\run.sh ;

Now SAS and Splus can run automatically in batch mode in my PC under 
cygwin by recognizing cygwin symbolic links.
Best,

Aldi



Igor Pechtchanski wrote:

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

-- 



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019