This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Can't Run Excel From A Cron Job Under Windows 7
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: "Kertz, Denis (D)** CTR **" <d dot kertz at alcatel-lucent dot com>, cygwin at cygwin dot com
- Date: Wed, 19 Nov 2014 16:45:23 +0300
- Subject: Re: Can't Run Excel From A Cron Job Under Windows 7
- Authentication-results: sourceware.org; auth=none
- References: <883F2CBBC85A62419E181EB2F0ECF21F3E1169F8 at US70UWXCHMBA04 dot zam dot alcatel-lucent dot com> <1785488620 dot 20141111221749 at yandex dot ru> <883F2CBBC85A62419E181EB2F0ECF21F3E118128 at US70UWXCHMBA04 dot zam dot alcatel-lucent dot com> <1991456701 dot 20141112231225 at yandex dot ru> <883F2CBBC85A62419E181EB2F0ECF21F3E118381 at US70UWXCHMBA04 dot zam dot alcatel-lucent dot com> <1375040469 dot 20141114012521 at yandex dot ru> <883F2CBBC85A62419E181EB2F0ECF21F3E11CABC at US70UWXCHMBA04 dot zam dot alcatel-lucent dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Kertz, Denis (D)** CTR **!
>>>> Try starting cron in terminal session and see if anything comes up.
>>
>> Stop (don't kill! Everyone, who use -KILL, must be -KILL'ed) the cron service,
>> then start cron in terminal, using `runas /user:... ...'. So it would run
>> under proper user, and see if anything come up, when it execute your excel
>> job.
> I was unable to find how to use runas from a terminal.
runas supply a plentiful help page when started without any parameters.
Your problem is probably that you assume the mintty to be the way to go, or
sort of a requirement, which it isn't.
runas is a windows tool to start applications under different credentials. And
as any native tool, it has no concept of pty's, and unlikely to output
anything to the mintty.
You can overcome this with redirection to an extent, i.e.
runas | iconv -f <OEM_encoding>
> I can simply type runas and it does nothing and I can't find --help or
> /help. I did find a suggestion to use cygstart
cygstart is a cygwin analogue for START command. Not the tool for the job.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 19.11.2014, <16:19>
Sorry for my terrible english...
--
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