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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=qIoK+zAMfv87To/b
	covGpSTNm3gdpfWu1bRJyv5tAYYSJxAPye+byUFN2QC+vFpjsN3elmOoXxLWTmE+
	DD9NtA6mfcuowAGNEjbyyB54CSmQIYWu/xV49Jwssb1bEydDkrxCjvDN6fgTSRAr
	VimWnVrrH16+WZbtIo5BKIwRXd4=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=veGHbbdjNy+yzLu4r39oXH
	rJGfY=; b=cGR5zTp0kJgkWk6VcfHuu2ycfcfP1DH3bbK7B+mkq916clBOlAlnm4
	49zYIt8izSsK9mUZAGecofey3ZUH9j58+p9RrVDc3REb1V6jUIPWSoY1Y3U0nNJz
	+ItNVJ0qYBFg1TFtII8YhQo5Ys0M8M0ROtAdm1aVDW7Pl/BDdc4Kg=
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.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Wed, 19 Nov 2014 16:45:23 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <697872363.20141119164523@yandex.ru>
To: "Kertz, Denis (D)** CTR **" <d.kertz@alcatel-lucent.com>,
        cygwin@cygwin.com
Subject: Re: Can't Run Excel From A Cron Job Under Windows 7
In-Reply-To: <883F2CBBC85A62419E181EB2F0ECF21F3E11CABC@US70UWXCHMBA04.zam.alcatel-lucent.com>
References: <883F2CBBC85A62419E181EB2F0ECF21F3E1169F8@US70UWXCHMBA04.zam.alcatel-lucent.com>       <1785488620.20141111221749@yandex.ru>    <883F2CBBC85A62419E181EB2F0ECF21F3E118128@US70UWXCHMBA04.zam.alcatel-lucent.com>   <1991456701.20141112231225@yandex.ru>   <883F2CBBC85A62419E181EB2F0ECF21F3E118381@US70UWXCHMBA04.zam.alcatel-lucent.com>  <1375040469.20141114012521@yandex.ru>  <883F2CBBC85A62419E181EB2F0ECF21F3E11CABC@US70UWXCHMBA04.zam.alcatel-lucent.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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

