delorie.com/archives/browse.cgi | search |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:content-transfer-encoding | |
:in-reply-to; q=dns; s=default; b=eR1h9wTRbxCN5od1b7LaqdvfN6HFz4 | |
+K4ZvD2jmQzs/xeohQ8ojBpeQISJqHjOWmkIsQS52/B609gNzQ1v+Wr5SxF8bPeR | |
FcxGYSFP7uFf8bJYyZYCP5Rya7bzpxkarRyZ3LqIQ6JRP6E1/badqp/P7AOXXNSI | |
Ig0uIxgVsRpK0= | |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:content-transfer-encoding | |
:in-reply-to; s=default; bh=8Fu/ZWUisc+0h8C2gVH8FZkN0fY=; b=jV8a | |
/6j7ud1rBiOT6hAiErOdG3i/oWsMfxoZGdel9mNVlmFqcihQFnxcaSn4zkrIYucQ | |
GOKLSNuo7BWAUnLb19Kqt6oaChZVoWBPKx1W43h7OHZIoPX0mrt8kh5QPDv507FY | |
QxHXvnR7474WQARBfHU6e9FdWWFfBb3oqgRr6vg= | |
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 |
X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 |
Date: | Thu, 20 Jun 2013 12:52:58 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Different Result using ps -efW (Manual & Cron) |
Message-ID: | <20130620105258.GO1620@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <1371716521 DOT 698 DOT YahooMailNeo AT web162103 DOT mail DOT bf1 DOT yahoo DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <1371716521.698.YahooMailNeo@web162103.mail.bf1.yahoo.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
On Jun 20 01:22, Jun Iriola wrote: > Hi, > > I made a simple script that should detect if a certain service is running or not. Â Said script will run via cron. > > When I tested it and executed it manually in the command prompt, it list all Cygwin and Windows processes. But when I put it in cron, the number of services detected were not the same. Account used is the same during manual execution and also on cron. > > To get the list of services, I use this command /usr/bin/ps -efW. > > Do you have any idea why such behavior? Â Help is very much appreciated. Â Thanks. It's probably related to your user token's permissions. See http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview Try using method 3, it should give full, equivalent access as in interactive mode. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |