From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Different Result using ps -efW (Manual & Cron)
Date: Thu, 20 Jun 2013 13:07:00 -0000 [thread overview]
Message-ID: <20130620105258.GO1620@calimero.vinschen.de> (raw)
In-Reply-To: <1371716521.698.YahooMailNeo@web162103.mail.bf1.yahoo.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
prev parent reply other threads:[~2013-06-20 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 8:33 Jun Iriola
2013-06-20 13:07 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130620105258.GO1620@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).