X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <1271537889.5593.6.camel@erebor>
References: <h2y5969679e1004171059x1f563e57i9e58c23f5f0fc676@mail.gmail.com>  	<n2o5969679e1004171104mc6fd0357l5be8cc367c4488@mail.gmail.com>  	<1271537889.5593.6.camel@erebor>
From: Geraldo Veiga <gveiga@gmail.com>
Date: Sun, 18 Apr 2010 02:02:19 -0300
Received: by 10.150.56.40 with SMTP id e40mr3985315yba.1.1271566959415; Sat,  	17 Apr 2010 22:02:39 -0700 (PDT)
Message-ID: <q2i5969679e1004172202w3978ca83sc7d1ea5adbadcfa7@mail.gmail.com>
Subject: Re: Running a Matlab script remotely via ssh
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thanks for the follow-ups.  It turns out that I tried the same
experiment on another Vista installation (32bit this time around) and
it run Matab scripts via ssh without a hitch. Officially the
command-line should look like this:

matlab -nodesktop -r test_batch

In practice the option "-nodesktop"  was not necessary.  Now, I am
still not sure what the problem with the other system might be.  Maybe
 Vista 64bit is complaining about something else, maybe some firewall
issue, maybe a service configuration.  I will only have physical
access to this system on Monday for further testing.

Of course, the real lesson here is that you shouldn't attempt this
stuff on Windows, especially not on Vista.

On Sat, Apr 17, 2010 at 5:58 PM, Matthew B. Smith
<melkor@orangpalantir.org> wrote:
> I'm pretty sure you cannot use a window. =A0I think matlab has another cmd
> line argument such as -batch to run w/out windows?
>
> mbs
>
> On Sat, 2010-04-17 at 15:04 -0300, Geraldo Veiga wrote:
>> I have Cygwin installed in a Vista/64 system with sshd enabled. =A0I
>> would like to login remotely via ssh and run a script written in
>> Matlab.
>> Directly from the DOS command line this is possible:
>>
>> matlab -nosplash -nodesktop -minimize -r test_batch -logfile logfile
>>
>> No such luck when I try the same with a remote session. =A0The thing
>> just hangs there until I interrupt it with CTRL-C.
>>
>> Is there any way around this? =A0Matlab is a Windows application and
>> always opens a window when executed. =A0That "-minimize" in the
>> command-line =A0just hides the obvious.
>>
>> Thanks in advance for your help

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

