X-Recipient: archive-cygwin AT delorie DOT 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:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=KIB6gSNUyBb/4MnXid1FqZJ07nqdU fceCbZ+UemN5Lm4BHISY8O8UwIanqaUYvlfMySGLG7DXI1W9Vg1scq+L0PhhjpTu MMGR9sFsHrRhF2JUU00Q79YJ2M9NeHq9OM1sP4mv6gZ5DCgm2Dk6n07moVah2CHa 5MKPpIFdEEr/Xw= 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:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=0CTcBIPFlJTXcnspG3oFFBP4g8E=; b=I/y zaWyOnHP8LVbDQSMXAu4A0mgFWWpXxopguzsD90C/Rc3Sqhqky8btbR784OkC8n0 NGcprV6x3nFYwK5Kpg6Uv4GkK2zbVoyc2db+CljNCYm8hGA/Cbh6XSwGJ7avAyl8 0njy9W0AosKMCyIjz3FpDnz9P3NgJ2fJLTk3xd8o= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.7 required=5.0 tests=AWL,BAYES_50,KAM_ASCII_DIVIDERS autolearn=no version=3.3.2 X-HELO: mailgw-k01.its.kfa-juelich.de From: "Kiehl, Horst" To: "Kertz, Denis (D)** CTR **" , "cygwin AT cygwin DOT com" Subject: RE: Unable to run excel via cron Date: Wed, 17 Jun 2015 15:09:34 +0000 Message-ID: <5cd29bc9b87544e98bceea5756738610@IBTEXCHMB1.ibt.kfa-juelich.de> References: <883F2CBBC85A62419E181EB2F0ECF21F45DE3905 AT US70UWXCHMBA04 DOT zam DOT alcatel-lucent DOT com> In-Reply-To: <883F2CBBC85A62419E181EB2F0ECF21F45DE3905@US70UWXCHMBA04.zam.alcatel-lucent.com> x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t5HF9trq005098 (Trying to remove TOFU to make the conversation appear chronological again and with correct attributions.) Kertz, Denis (D)** CTR ** wrote: > > > We need to run some Excel programs via cron and are using vbscript to do this. We have this running on a WinXP machine but are having trouble running on a Win7 machine, but we don't think it is a Win7 problem. > > > > > > Here's the script to run a simple test excel program: > > > > > > [...] Bryan Berns wrote: > > What bitness of Excel and Cygwin are you running? > > > > CreateObject("Excel.application") will attempt to create a 32-bit > > instance of Excel when launched through the 32-bit version of > > wscript.exe or a 64-bit instance of Excel when launched through the > > 64-bit version of Excel. Which bitness of WScript.exe ends up being > > run will depend on the bitness of the parent program (which may be > > different in a command prompt vice Cygwin). Try changing it to run > > Wscript.exe in SysWow64 instead of System32 (which is subject to > > automatic redirection) and see if changes the behavior. If you're not > > running a 64-bit OS, then just ignore everything I said. 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). Although the aspect Corinna wrote about may be the culprit already, just in case: It appears that you, Denis, were misunderstanding Bryan. The consequence of what he tried to point out might be that you, using 64-bit Cygwin and 32-bit Excel, would have to explicitly use the 32-bit wscript.exe instead of the 64-bit wscript.exe, to make sure that wscript.exe (32-bit) will start Excel (32-bit) successfully. In other words, you might have to use $windir/SysWOW64/wscript.exe (i.e. %windir%\SysWOW64\wscript.exe) from your 64-bit Cygwin process. (The reason for the seemingly backwards 32-bitness and 64-bitness of executables in SysWOW64 and system32, respectively, if viewed from a 64-bit process, is to make code with hardcoded "system32", whether compiled or interpreted, continue to work in a 64-bit context as well as in a 32-bit context.) Horst ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ -- 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