This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Different Result using ps -efW (Manual & Cron)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 20 Jun 2013 12:52:58 +0200
- Subject: Re: Different Result using ps -efW (Manual & Cron)
- References: <1371716521 dot 698 dot YahooMailNeo at web162103 dot mail dot bf1 dot yahoo dot com>
- Reply-to: cygwin at cygwin dot com
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