X-Spam-Check-By: sourceware.org
Message-ID: <447328D9.1030101@cygwin.com>
Date: Tue, 23 May 2006 11:23:05 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.5.19: Problem with cron and microsoft devenv
References: <59d497b90605222116h9037532v2795ef1df67f4e4a@mail.gmail.com>
In-Reply-To: <59d497b90605222116h9037532v2795ef1df67f4e4a@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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

Nick Forte wrote:
> I'm currently having a problem where microsoft's devenv compiler
> crashes when running under cron.  If I run my build scripts directly
> from a bash shell devenv works great.
> 
> I've installed VC2005.NET and cygwin under Administrator.  I then
> created a crontab entry like so:
> HOME=/Home/Administrator
> SHELL=/usr/bin/bash
> 
> 00 * * * * $HOME/trees/trunk/scripts/master_control.sh
> 
> 
> In master_control.sh I call a perl script that does some svn and
> configuration management but ultimately run the following commands:
> 'devenv.com myproject.sln /clean Release'
> 'devenv.com myproject.sln /build Release'
> 
> The first command works great.  It cleans the project and deletes all
> the *.obj etc.... files.  When it runs the second command I get the
> following:
> Application popup: Microsoft Visual C++ Runtime Library : Runtime Error!
> Program: ...\Common7\IDE\devenv.exe
> This application has requested the Runtime to terminate it in an
> unusual way.  Please contact the application's support team for more
> information.
> 
> At first I thought there was a permissions issue or something of that
> nature except the first '/clean' command is deleting files and exits
> gracefully.  As I stated before, the scripts work fine when I run them
> in a bash shell.  What's different about running under cron vs.
> running in a bash shell that could be different?
> 

Environment for one.  You should check to make sure you have all of the
environment variables that you need when running under cron.  I also
recall others having problems running devenv if the user running it is
not authenticated through Windows (i.e. password).  You can see if this
is the cause of your problem by running the cron service as your user.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

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

