X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=gqw
	jV6gjou1m1VLsbyiup35kbEeRpCSYQBrQih4sFRKNAZRhAd19h886q6g0L9BidiJ
	7Hg2l67X+ZCRUFo3gwNeIwyaR2knYHtkuPd0WzArxqIZwtudtfbTvFUmf7YYfBnz
	hx/K3g9hu6dgHVHqw4bNXX9MjY301DjHbDj6W1nk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; s=default; bh=fRWApSzFo
	XNq+SPjkLXp9UCuPHo=; b=xD90KhGltfnsn23cG1hbc8HRNqugKASn+Ik4tQWAs
	xZAlBEIDMLIP+A3XmE4+av1yWq7JhzUkORvYHlOxwwkkbl2qtdGpFsZLgDfTOHxE
	WgCHsjZx2FIuH1QZl6P3INu8IJyB42zCWktXplwFQY5q/9jvkPFKpEjQaS9uinet
	Ns=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_50,KAM_ASCII_DIVIDERS,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: smtp-fr.alcatel-lucent.com
From: "Kertz, Denis (D)** CTR **" <d.kertz@alcatel-lucent.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: Unable to run excel via cron
Date: Wed, 17 Jun 2015 16:55:50 +0000
Message-ID: <883F2CBBC85A62419E181EB2F0ECF21F45DE3B0C@US70UWXCHMBA04.zam.alcatel-lucent.com>
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t5HGuJik013520

We are running cron under the specific cygwin login (not cyg_server).

Presumably there is a solution to this problem.  We have 3 Win7 Pro PCs and this works on one of the PCs (unfortunately, not the one where we need it to work) and fails on the other two PCs.

Thanks for the two suggested links.  We will check them out.

Denis

------------------------------------------------------------------------------------

Corinna Vinschen Wrote:

On Jun 17 13:29, Kertz, Denis (D)** CTR ** wrote:
> Unfortunately, using the 64-bit wscript.exe didn't change anything - same behavior as before with excel hanging.
> 
> We are using 64-bit cygwin and 32-bit Excel (Excel 2007).

The problem is probably related to some of the changes between XP and
W7.  On XP, the desktop runs in session 0, just like the services.  With
UAC since Vista, the desktop runs in session 1, while the services
continue to run in session 0.  Therefore services are not allowed to
connect to the desktop anymore since Vista.  UAC itself, as well as
a feature since Windows 2003 (permissions of LocalSystem) may come into
play here as well.  Are you running cron under the cyg_server account
on W7 (hopefully)?

Two possible solutions come to mind:

- Either there is no solution.  The reason might be that Excel is
  expecting a GUI it can't connect to.

- Or it's about the user token after switching the user context.  I
  assume you're running Excel from cron as some other user account than
  cyg_server.  Please read
  https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview
  and try
  https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3


Corinna

-- 
Corinna Vinschen


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


