Unable to run excel via cron
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Jun 17 14:15:00 GMT 2015
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 Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150617/7ed1d6c1/attachment.sig>
More information about the Cygwin
mailing list