delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/19/08:50:33

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: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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <697872363.20141119164523@yandex.ru>
To: "Kertz, Denis (D)** CTR **" <d DOT kertz AT alcatel-lucent DOT com>,
cygwin AT cygwin DOT 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 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>
MIME-Version: 1.0
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 AT yandex DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019