delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/10/14:07:19

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
Message-ID: <91B8B800D848D611903F000347992DC10CB4A852@sbnex642.als.allied.com>
From: "Phillips, James R" <james DOT phillips AT honeywell DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Running custom cygwin apps from Matlab for windows
Date: Thu, 10 Feb 2005 12:05:51 -0700
MIME-Version: 1.0
X-imss-version: 2.022
X-imss-result: Passed
X-imss-scores: Clean:84.87814 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:4 C:3 M:3 S:3 R:3 (1.0000 1.0000)

OK, matlab for windows has several for executing windows commands, the
simplest to discuss is
 
system(string)
  
This will pass the contents of the string to windows as a command to
execute.
 
The string could look like
 
'C:\cygwin\bin\bash --login -c custom-command'
 
which will log into a cygwin bash shell to excecute custom-command and then
exit.
 
So its perfectly possible.  
 
Experiment a little; you will find that it does in fact work.
 

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