Re: Cron Issue

2007-08-13 Thread Pierre A. Humblet

- Original Message - 
From: "Barnhart Jay" <>
To: 
Sent: Monday, August 13, 2007 11:02 AM
Subject: RE: Cron Issue



Here is the cronbug dumpI deleted a lot of the event log history to
reduce the sizeIt's all the same error over and over again since
it's running every 5 minutes...


Jay,

The main error messages are
2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (CRON) error (can't 
switch user context)



The problem is simply that you are running the cron daemon as SYSTEM on a 
Windows 2003 machine.
Unfortunately on Windows 2003 SYSTEM does not have the privilege to setuid.
This is indicated plainly in the cron-config script, which offers to create a 
privilege server. 
You seem to have
done so because /var/log/cron.log is owned by cron_server.
I have no idea why your cron daemon is now running as SYSTEM.

Once the service has been created (under SYSTEM or any other user name),
cron_diagnose.sh simply checks that the various permissions are OK for
cron to run, it doesn't give any additional warnings if you are on
Windows 2003.

You should run cron-config again and reinstall the service.

You have one other problem with the Administrator crontab:
2007/08/13 06:22:39 [SYSTEM] /usr/sbin/cron: PID 3156: (CRON) STARTUP (V5.0)
2007/08/13 06:22:39 [SYSTEM] /usr/sbin/cron: PID 3156: (Administrator) WRONG 
FILE OWNER 
(tabs/Administrator)



That crontab is ignored by cron, only the one for dsorftpt_edms is taken into 
account.

That error is weird because ls -l shows

-rw-r- 1 Administrator Administrators 248 Aug 10 12:21 
/var/cron/tabs/Administrator
Do you have several Administrator in /etc/passwd?



Pierre



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cron Issue

2007-08-13 Thread Barnhart Jay

Here is the cronbug dumpI deleted a lot of the event log history to
reduce the sizeIt's all the same error over and over again since
it's running every 5 minutes...

Thanks for your assistance

Jay Barnhart 
OCP, Linux Certified SA, MPM
614-628-4854 Office
614-371-3891 Cell
[EMAIL PROTECTED]
www.sabercorp.com

-Original Message-
From: Pierre A. Humblet [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 13, 2007 10:32 AM
To: Barnhart Jay; cygwin@cygwin.com
Subject: Re: Cron Issue


- Original Message - 
From: "Barnhart Jay" 
To: 
Sent: Monday, August 13, 2007 10:07 AM
Subject: Cron Issue


I'm trying to get Cron running on our Windows 2003 environmentWe
have installed the software and run cron_diagnose.sh with no issues.
The problem I'm having is the /var/log/cron.log isn't showing any
entries and the Windows event log has stated that "/usr/sbin/cron file
not found".  It seems like it's a path or permissions problem.  The
crontab file that I have created is running a super simple script every
5 minutes.  The event log is generating the error every 5 minutes, which
tells me that cron is reading the crontab file, so the error message is
confusing

I've read most of the postings that I've seen on this issue and added
permissions, created the dedicated cron_server account, etc.

***
Jay,

Having the exact text of the error message would help. 
When you run cron_diagnose.sh you should see the following on the
screen:
**
If you cannot fix the problem, then report it to [EMAIL PROTECTED]
Please run the script /usr/bin/cronbug and ATTACH its output
(the file cronbug.txt) to your e-mail.
**
Please do so as well.

Pierre

Current version
-rwxrwx---+ 1 Administrator Users 4959 Jun 12 15:22 
/usr/share/doc/Cygwin/cron-4.1-5.README

Running crons:
 315622363156   2900?   18 06:22:39 /usr/sbin/cron

Sendmail:
lrwxrwxrwx 1 Administrator None 16 Jul 18 10:19 /usr/sbin/sendmail -> 
/usr/bin/cronlog

Crontabs:
-rw-r- 1 Administrator Administrators 248 Aug 10 12:21 
/var/cron/tabs/Administrator
-rw-r- 1 dsorftpt_edms Administrators 302 Jul 31 06:42 
/var/cron/tabs/dsorftpt_edms

cron.log:
-rwxrwxrwx 1 cron_server Administrators 0 Jul 20 08:55 /var/log/cron.log

cron.pid:
-rw-r--r-- 1 SYSTEM Administrators 5 Aug 13 06:22 /var/run/cron.pid

Crontab:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.LyjCsUzu3z installed on Wed Aug  8 06:41:10 2007)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
00-59 * * * * $HOME/test.sh >> $HOME/cron.log

Windows Application Events log:
2007/08/13 06:22:39 [SYSTEM] /usr/sbin/cron: PID 3156: (CRON) STARTUP (V5.0)
2007/08/13 06:22:39 [SYSTEM] /usr/sbin/cron: PID 3156: (Administrator) WRONG 
FILE OWNER (tabs/Administrator)
2007/08/13 06:22:40 [SYSTEM] cron: PID 2236: `cron' service started
2007/08/13 06:25:01 [SYSTEM] /usr/sbin/cron: PID 6040: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:25:01 [SYSTEM] /usr/sbin/cron: PID 6040: (CRON) error (can't 
switch user context)
2007/08/13 06:30:01 [SYSTEM] /usr/sbin/cron: PID 1888: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:30:01 [SYSTEM] /usr/sbin/cron: PID 1888: (CRON) error (can't 
switch user context)
2007/08/13 06:35:01 [SYSTEM] /usr/sbin/cron: PID 5728: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:35:01 [SYSTEM] /usr/sbin/cron: PID 5728: (CRON) error (can't 
switch user context)
2007/08/13 06:40:01 [SYSTEM] /usr/sbin/cron: PID 5336: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:40:02 [SYSTEM] /usr/sbin/cron: PID 5336: (CRON) error (can't 
switch user context)
2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (CRON) error (can't 
switch user context)
2007/08/13 06:50:01 [SYSTEM] /usr/sbin/cron: PID 6068: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:50:01 [SYSTEM] /usr/sbin/cron: PID 6068: (CRON) error (can't 
switch user context)
2007/08/13 06:55:01 [SYSTEM] /usr/sbin/cron: PID 3004: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 06:55:01 [SYSTEM] /usr/sbin/cron: PID 3004: (CRON) error (can't 
switch user context)
2007/08/13 07:00:01 [SYSTEM] /usr/sbin/cron: PID 4716: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.sh >> $HOME/mmis/cron.log)
2007/08/13 07:00:01 [SYSTEM] /usr/sbin/cron: PID 4716: (CRON) error (can't 
switch user context)
2007/08/13 07:05:01 [SYSTEM] /usr/sbin/cron: PID 5984: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/test.

Re: Cron Issue

2007-08-13 Thread Pierre A. Humblet

- Original Message - 
From: "Barnhart Jay" 
To: 
Sent: Monday, August 13, 2007 10:07 AM
Subject: Cron Issue


I'm trying to get Cron running on our Windows 2003 environmentWe
have installed the software and run cron_diagnose.sh with no issues.
The problem I'm having is the /var/log/cron.log isn't showing any
entries and the Windows event log has stated that "/usr/sbin/cron file
not found".  It seems like it's a path or permissions problem.  The
crontab file that I have created is running a super simple script every
5 minutes.  The event log is generating the error every 5 minutes, which
tells me that cron is reading the crontab file, so the error message is
confusing

I've read most of the postings that I've seen on this issue and added
permissions, created the dedicated cron_server account, etc.

***
Jay,

Having the exact text of the error message would help. 
When you run cron_diagnose.sh you should see the following on the screen:
**
If you cannot fix the problem, then report it to [EMAIL PROTECTED]
Please run the script /usr/bin/cronbug and ATTACH its output
(the file cronbug.txt) to your e-mail.
**
Please do so as well.

Pierre

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-17 Thread Harig, Mark

> I believe the problem was in the user accounts I have
> setup on my windows box.  I have both a domain
> account \rdavies, and a machine
> account \rdavies.  I'll spare you the
> reasons why.  While I had stopped and deleted the
> service cron with cygrunsrv, I had never tried to
> install and start the service using the 2 steps.
> When I tried, the -u rdavies flag actually picked
> up the machine not domain user.  And it wouldn't start. 
>
> I deleted the machine user (assigned to group none,
> and not likely to get any use anyway) and then
> reconfigured with cron-configure.  Poof!  I now
> have a new line every minute in the goofy log
> file I was testing with.  Thanks for your help. 

If you are able to think of a test that can be added
to cron_diagnose.sh, please post it on this mail list.
It sounds as though there should be a test to see
whether the user's ID is "valid", by some definition.

---

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-17 Thread Harig, Mark

> I believe the problem was in the user accounts I have
> setup on my windows box.  I have both a domain
> account \rdavies, and a machine
> account \rdavies.  I'll spare you the
> reasons why.  While I had stopped and deleted the
> service cron with cygrunsrv, I had never tried to
> install and start the service using the 2 steps.
> When I tried, the -u rdavies flag actually picked
> up the machine not domain user.  And it wouldn't start. 
>
> I deleted the machine user (assigned to group none,
> and not likely to get any use anyway) and then
> reconfigured with cron-configure.  Poof!  I now
> have a new line every minute in the goofy log
> file I was testing with.  Thanks for your help. 

If you are able to think of a test that can be added
to cron_diagnose.sh, please post it on this mail list.
It sounds like there should be a test to see whether
the user's ID is "valid for cron", by some definition.

--- 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Davies, Roger

>Have you tried running the commands recommended by cron_diagnose.sh
>for shutting down/uninstalling/installing/restarting the cron service,
>i.e., the following?

[RD] I believe the problem was in the user accounts I have setup on my
windows box.  I have both a domain account \rdavies, and a
machine account \rdavies.  I'll spare you the reasons why.
While I had stopped and deleted the service cron with cygrunsrv, I had
never tried to install and start the service using the 2 steps.  When I
tried, the -u rdavies flag actually picked up the machine not domain
user.  And it wouldn't start. 

I deleted the machine user (assigned to group none, and not likely to
get any use anyway) and then reconfigured with cron-configure.  Poof!  I
now have a new line every minute in the goofy log file I was testing
with.  Thanks for your help. 

Important Notice:

The contents of this electronic message and any attachments are intended only 
for the addressee
and may contain confidential and privileged information.  If you are not the 
addressee, you are
notified that any transmission, distribution, downloading, printing or 
photocopying of the
contents is strictly prohibited.  If you have received this message in error, 
please notify the
sender by return e-mail immediately and destroy all copies of the message and 
any attachments. 
Thank you.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Harig, Mark

>>1. What command sequence did you use to start the
>>   cron service on your computer?  (In general, what
>>   commands did you use to set up package X?  Or, what
>>   commands did you run prior to encountering a problem?)

>[RD] I went the minimal effort route and ran /usr/bin/cron-config.

I think this is the recommended method for people who are setting
up the cron service for the first time.

>I don't have a command line explicitly.  What DOES happen at the
>minimum is that cygrunsrv installs a service called cron running
>as the user rdavies (me) using ntsec.  I can confirm that the
>service is running, and that ps -ef reports that cron is active
>and running as the rdavies user.

Have you tried running the commands recommended by cron_diagnose.sh
for shutting down/uninstalling/installing/restarting the cron service,
i.e., the following?

C_d>If you are still unable to get cron to work, then try shutting
C_d>down the cron service, uninstalling it, reinstalling it, and
C_d>restarting it.
C_d>
C_d>The following commands will do that:
C_d>  $ cygrunsrv --stop cron
C_d>  $ cygrunsrv --remove cron
C_d>  $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
C_d>  (You can also add a -u switch)
C_d>  $ cygrunsrv --start cron
C_d>
C_d>If the cron service does not start, try deleting the file
C_d>/var/run/cron.pid and then repeating the commands above.
C_d>
C_d>Also, examine the log file for cron, /var/log/cron.log,
C_d>for information that it might give you about the problem cron
C_d>is having.

>
>[RD] Symbolic link to exim:
>lrwxrwxrwx 1 rdavies mkgroup-l-d 13 May 15 16:46 /usr/sbin/sendmail ->
/usr/bin/exim
>

Group---> ^^^

I am not sure whether the fact that you have not set a group value for
your user account has any effect on your ability to run a cron service.
I do not think that it does.

---

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Davies, Roger

>1. What command sequence did you use to start the
>   cron service on your computer?  (In general, what
>   commands did you use to set up package X?  Or, what
>   commands did you run prior to encountering a problem?)

[RD] I went the minimal effort route and ran /usr/bin/cron-config.  I
don't have a command line explicitly.  What DOES happen at the minimum
is that cygrunsrv installs a service called cron running as the user
rdavies (me) using ntsec.  I can confirm that the service is running,
and that ps -ef reports that cron is active and running as the rdavies
user.   

>   I am running Cygwin on Windows 2003, so the
>   'sshd_user'/'password' is required for my computer.
>   I think that this is *not* required for Windows XP.
>   In fact, you may not have set up an ssh service yet.

[RD] I'm running on XP, and I do not have a secure shell daemon.
Actually, the only daemon I'm running is exim and that just to keep cron
happy.

> "Important:  Make sure you have a Cygwin MTA (e. g. either exim or
ssmtp)
> installed and configured!  Cron tries to access the MTA by calling
> /usr/bin/sendmail.  On Cygwin this is usually a symlink pointing to
the
> appropriate binary.  This symlink gets created by the MTA's
>configuration
>scripts (e. g. /usr/bin/exim-config or /usr/bin/ssmtp-config)."
>
>The README has a typo, above.  "/usr/bin/sendmail" should read
>"/usr/sbin/sendmail".  Confirm that /usr/sbin/sendmail is a
>symbolic link that points to your Cygwin MTA.

[RD] Symbolic link to exim:
lrwxrwxrwx 1 rdavies mkgroup-l-d 13 May 15 16:46 /usr/sbin/sendmail ->
/usr/bin/exim

Important Notice:

The contents of this electronic message and any attachments are intended only 
for the addressee
and may contain confidential and privileged information.  If you are not the 
addressee, you are
notified that any transmission, distribution, downloading, printing or 
photocopying of the
contents is strictly prohibited.  If you have received this message in error, 
please notify the
sender by return e-mail immediately and destroy all copies of the message and 
any attachments. 
Thank you.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Harig, Mark
1. What command sequence did you use to start the
   cron service on your computer?  (In general, what
   commands did you use to set up package X?  Or, what
   commands did you run prior to encountering a problem?)

   Here is what I am using to start my cron service.

   cygrunsrv --install cron --shutdown \
--path /usr/sbin/cron --args "-D" \
--disp "Cygwin cron" --desc "Cygwin vixie-cron service" \
--user sshd_server --passwd your-fine-password;

   I am running Cygwin on Windows 2003, so the 
   'sshd_user'/'password' is required for my computer.
   I think that this is *not* required for Windows XP.
   In fact, you may not have set up an ssh service yet.

>
> I opted for exim instead of ssmtp, which I presume is OK.
>

2. To quote the README:

   "Important:  Make sure you have a Cygwin MTA (e. g. either exim or
ssmtp)
installed and configured!  Cron tries to access the MTA by calling
/usr/bin/sendmail.  On Cygwin this is usually a symlink pointing to
the
appropriate binary.  This symlink gets created by the MTA's
configuration
scripts (e. g. /usr/bin/exim-config or /usr/bin/ssmtp-config)."

The README has a typo, above.  "/usr/bin/sendmail" should read
"/usr/sbin/sendmail".  Confirm that /usr/sbin/sendmail is a
symbolic link that points to your Cygwin MTA.

---

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Davies, Roger

I checked the readme before configuring.  I opted for exim instead of
ssmtp, which I presume is OK.

>1. Run 'cygcheck -l cron' to list the files included in the
>   'cron' package.  (This is a general recommendation for
>   any Cygwin package.)

[RD] I have all the files in the package (/etc/postinstall/cron.sh is
/etc/postinstall/cron.sh.done).

>2. Read the file /usr/share/doc/Cygwin/cron.README to get
>   some Cygwin-specific instructions about 'cron', including
>   the use of 'ssmtp' as a replacement for 'sendmail'.

[RD] Went with exim, but it's configured.

>3. Run '/usr/bin/cron_diagnose.sh' to see whether it can
>   identify any problems with your cron setup.

[RD] $ cron_diagnose.sh
cron_diagnose.sh 1.10

This script did not find any errors in your cron setup.

If you are still unable to get cron to work, then try
shutting down the cron service, uninstalling it,
reinstalling it, and restarting it.

The following commands will do that:
  $ cygrunsrv --stop cron
  $ cygrunsrv --remove cron
  $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
  (You can also add a -u switch)
  $ cygrunsrv --start cron

If the cron service does not start, try deleting the file
/var/run/cron.pid and then repeating the commands above.

Also, examine the log file for cron, /var/log/cron.log, for
information that it might give you about the problem cron is
having.

If none of this fixes the problem, then report your problem
to [EMAIL PROTECTED]  Please include a copy of your crontab,
('crontab -l') and the output of 'cygcheck -srv > cygcheck.txt'.

Please include the generated file 'cygcheck.txt' *as an attachment*,
and NOT in the body of the mail message.



Important Notice:

The contents of this electronic message and any attachments are intended only 
for the addressee
and may contain confidential and privileged information.  If you are not the 
addressee, you are
notified that any transmission, distribution, downloading, printing or 
photocopying of the
contents is strictly prohibited.  If you have received this message in error, 
please notify the
sender by return e-mail immediately and destroy all copies of the message and 
any attachments. 
Thank you.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Nelson Pereira
Thanks !  That got me working...

I didn’t have exim of ssmtp installed or configured...

Regards,

npereira

Subject: RE: cron issue


Some steps you could try:

1. Run 'cygcheck -l cron' to list the files included in the
   'cron' package.  (This is a general recommendation for
   any Cygwin package.)

2. Read the file /usr/share/doc/Cygwin/cron.README to get
   some Cygwin-specific instructions about 'cron', including
   the use of 'ssmtp' as a replacement for 'sendmail'.

3. Run '/usr/bin/cron_diagnose.sh' to see whether it can
   identify any problems with your cron setup.


Subject: RE: cron issue

You had to install Sendmail to do this right?

How did you do that? Did you follow a howto article or dsomething? I
need to install sendmail also but from what I have read, sendmail
doesn't work on cygwin...

I get this:

The owner and the Administrators need
to have ..x permission to /usr/sbin/sendmail.
Here are the current permissions:
ls: /usr/sbin/sendmail: No such file or directory

Any help you can provide to help me install sendmail would be greatly
appreciated

Regards,
 
NPEreira

>>>>>>>>>>>>>>>>>>>>

I've configured cron using cron-config running as a service with the
SERVICE account and as a service with myself.  Initially, I created a
crontab to run an rsync backup, which never initiated.  I then opted for
something simple and obvious, sending the date to a file.  I've attached
my log, crontab and the cygcheck. 


I've verified that the service is running (under XP) and that cron is
running. 



Roger Davies
PeopleSoft HRMS
970.506.7750



Important Notice:

The contents of this electronic message and any attachments are intended
only for the addressee

and may contain confidential and privileged information.  If you are not
the addressee, you are

notified that any transmission, distribution, downloading, printing or
photocopying of the

contents is strictly prohibited.  If you have received this message in
error, please notify the

sender by return e-mail immediately and destroy all copies of the
message and any attachments. 

Thank you.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Harig, Mark
Some steps you could try:

1. Run 'cygcheck -l cron' to list the files included in the
   'cron' package.  (This is a general recommendation for
   any Cygwin package.)

2. Read the file /usr/share/doc/Cygwin/cron.README to get
   some Cygwin-specific instructions about 'cron', including
   the use of 'ssmtp' as a replacement for 'sendmail'.

3. Run '/usr/bin/cron_diagnose.sh' to see whether it can
   identify any problems with your cron setup.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nelson Pereira
Sent: Tuesday, May 16, 2006 11:36 AM
To: cygwin@cygwin.com
Subject: RE: cron issue

You had to install Sendmail to do this right?

How did you do that? Did you follow a howto article or dsomething?
I need to install sendmail also but from what I have read, sendmail doesn't 
work on cygwin...

I get this:

The owner and the Administrators need
to have ..x permission to /usr/sbin/sendmail.
Here are the current permissions:
ls: /usr/sbin/sendmail: No such file or directory

Any help you can provide to help me install sendmail would be greatly 
appreciated

Regards,
 
NPEreira

>>>>>>>>>>>>>>>>>>>>

I've configured cron using cron-config running as a service with the SERVICE 
account and as a service with myself.  Initially, I created a crontab to run an 
rsync backup, which never initiated.  I then opted for something simple and 
obvious, sending the date to a file.  I've attached my log, crontab and the 
cygcheck. 


I've verified that the service is running (under XP) and that cron is running. 



Roger Davies
PeopleSoft HRMS
970.506.7750



Important Notice:

The contents of this electronic message and any attachments are intended only 
for the addressee

and may contain confidential and privileged information.  If you are not the 
addressee, you are

notified that any transmission, distribution, downloading, printing or 
photocopying of the

contents is strictly prohibited.  If you have received this message in error, 
please notify the

sender by return e-mail immediately and destroy all copies of the message and 
any attachments. 

Thank you.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue

2006-05-16 Thread Nelson Pereira
You had to install Sendmail to do this right?

How did you do that? Did you follow a howto article or dsomething?
I need to install sendmail also but from what I have read, sendmail
doesn’t work on cygwin...

I get this:

The owner and the Administrators need
to have ..x permission to /usr/sbin/sendmail.
Here are the current permissions:
ls: /usr/sbin/sendmail: No such file or directory

Any help you can provide to help me install sendmail would be greatly
appreciated

Regards,
 
NPEreira



I've configured cron using cron-config running as a service with the
SERVICE account and as a service with myself.  Initially, I created a
crontab to run an rsync backup, which never initiated.  I then opted for
something simple and obvious, sending the date to a file.  I've attached
my log, crontab and the cygcheck. 


I've verified that the service is running (under XP) and that cron is
running. 



Roger Davies
PeopleSoft HRMS
970.506.7750



Important Notice:

The contents of this electronic message and any attachments are intended
only for the addressee

and may contain confidential and privileged information.  If you are not
the addressee, you are

notified that any transmission, distribution, downloading, printing or
photocopying of the

contents is strictly prohibited.  If you have received this message in
error, please notify the

sender by return e-mail immediately and destroy all copies of the
message and any attachments. 

Thank you.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cron issue

2005-07-01 Thread Imran Merali
I got things working. Thanks for your help.

On 6/29/05, Larry Hall <[EMAIL PROTECTED]> wrote:
> At 05:25 PM 6/29/2005, you wrote:
> >Imran Merali wrote:
> >
> >> I am trying to get cron to execute a bash script at a certain time,
> >> but it is not doing so. The script itself works well, but it doesn't
> >> seem to want to run when i set it up as a cron job. The same thing
> >> happens when I try to do something simple like output a timestamp to a
> >> text file each minute. This is a fresh install. Additionally, the line
> >> in my crontab is identical to that in the crontab on my bsd machine. I
> >> used cron_diagnose.sh, but it said my install was fine, with the
> >> exception of a little issue with sendmail, which I tried to correct
> >> with a symlink to a working mailer.
> >[snip]
> >
> >First look into the Windows Event Viewer + Application, you should find a few
> >events that have, among other things, the crond output.
> 
> 
> Also look at '/var/log/cron.log' for info.
> 
> 
> --
> Larry Hall  http://www.rfk.com
> RFK Partners, Inc.  (508) 893-9779 - RFK Office
> 838 Washington Street   (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
>

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Larry Hall
At 10:18 PM 6/30/2005, you wrote:
>I found http://www.cygwin.com/ml/cygwin/2003-09/msg01858.html and it says to
>create /etc/cron.d but that directory is already created. So then I noticed
>it was marked readonly so I gave full control to everyone and still no luck.
>Thanks,
>Siegfired



Please read and follow the advice from replies you receive to your previous
posting before following up yourself on that posting with other things you 
tried that don't work.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Siegfried Heintze
I found http://www.cygwin.com/ml/cygwin/2003-09/msg01858.html and it says to
create /etc/cron.d but that directory is already created. So then I noticed
it was marked readonly so I gave full control to everyone and still no luck.
Thanks,
Siegfired

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Siegfried Heintze
Sent: Thursday, June 30, 2005 6:10 PM
To: cygwin@cygwin.com
Subject: RE: cron issue: The description for Event ID ( 0 ) in Source (
/usr/sbin/cron ) cannot be found

I'm having similar troubles. I have read the cron.README file. I installed
cron some time ago. I believe I used the command described in cron.README. I
see there are several cron.exes running on my system when I look at the
process list. Should there be?

 Here is one of the many entries in the event viewer. 


I need some help interpreting this:

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
/usr/sbin/cron : PID 1836 : (Siegfried) CMD (/c/Perl/bin/perl
/c/WinOOP/Perl/bots/yahoo/finance/crawl-hot-jobs.pl /GUI=NONE /sleep=60
/threads=8 >`date +").

Any suggestions on how to resolve this?
Thanks,
Siegfried




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
René Berber
Sent: Wednesday, June 29, 2005 3:26 PM
To: cygwin@cygwin.com
Subject: Re: cron issue

Imran Merali wrote:

> I am trying to get cron to execute a bash script at a certain time,
> but it is not doing so. The script itself works well, but it doesn't
> seem to want to run when i set it up as a cron job. The same thing
> happens when I try to do something simple like output a timestamp to a
> text file each minute. This is a fresh install. Additionally, the line
> in my crontab is identical to that in the crontab on my bsd machine. I
> used cron_diagnose.sh, but it said my install was fine, with the
> exception of a little issue with sendmail, which I tried to correct
> with a symlink to a working mailer.
[snip]

First look into the Windows Event Viewer + Application, you should find a
few
events that have, among other things, the crond output.

Second read $CYGWIN_HOME/usr/share/doc/Cygwin/cron.README and see what you
need
to have cron email you.

BTW bash scripts work fine with cron, what you describe as doing should work
with no problem.

HTH
-- 
René Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Igor Pechtchanski
On Thu, 30 Jun 2005, Siegfried Heintze wrote:

> I'm having similar troubles. I have read the cron.README file. I installed
> cron some time ago. I believe I used the command described in cron.README. I
> see there are several cron.exes running on my system when I look at the
> process list. Should there be?

Depends.  Every time cron forks, you'll see an instance of the executable.
Whether cron forks or not depends on your config, IIRC.

> Here is one of the many entries in the event viewer.
>
> I need some help interpreting this:

Okay.

> The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
> found. The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. You may be
> able to use the /AUXSOURCE= flag to retrieve this description; see Help and
> Support for details. The following information is part of the event:

Ignore the above.  It's Windows telling you that it can't find the
template to nicely format the event content, so it'll give you the raw
event data.

> /usr/sbin/cron : PID 1836 : (Siegfried) CMD (/c/Perl/bin/perl
> /c/WinOOP/Perl/bots/yahoo/finance/crawl-hot-jobs.pl /GUI=NONE /sleep=60
> /threads=8 >`date +").

Aha, this is the important one.  It's cron telling you the exact command
it tried to run.

> Any suggestions on how to resolve this?

Looks like your cron job command isn't
parsed correctly -- the name of the file to redirect the output to doesn't
look right.  Also, I'm assuming /c/Perl contains ActiveState perl, not
Cygwin's one.  If so, passing it a Cygwin path to the script won't work.

If it still doesn't work after you fix both of the problems above, please
post your crontab.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Siegfried Heintze
I'm having similar troubles. I have read the cron.README file. I installed
cron some time ago. I believe I used the command described in cron.README. I
see there are several cron.exes running on my system when I look at the
process list. Should there be?

 Here is one of the many entries in the event viewer. 


I need some help interpreting this:

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
/usr/sbin/cron : PID 1836 : (Siegfried) CMD (/c/Perl/bin/perl
/c/WinOOP/Perl/bots/yahoo/finance/crawl-hot-jobs.pl /GUI=NONE /sleep=60
/threads=8 >`date +").

Any suggestions on how to resolve this?
Thanks,
Siegfried




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
René Berber
Sent: Wednesday, June 29, 2005 3:26 PM
To: cygwin@cygwin.com
Subject: Re: cron issue

Imran Merali wrote:

> I am trying to get cron to execute a bash script at a certain time,
> but it is not doing so. The script itself works well, but it doesn't
> seem to want to run when i set it up as a cron job. The same thing
> happens when I try to do something simple like output a timestamp to a
> text file each minute. This is a fresh install. Additionally, the line
> in my crontab is identical to that in the crontab on my bsd machine. I
> used cron_diagnose.sh, but it said my install was fine, with the
> exception of a little issue with sendmail, which I tried to correct
> with a symlink to a working mailer.
[snip]

First look into the Windows Event Viewer + Application, you should find a
few
events that have, among other things, the crond output.

Second read $CYGWIN_HOME/usr/share/doc/Cygwin/cron.README and see what you
need
to have cron email you.

BTW bash scripts work fine with cron, what you describe as doing should work
with no problem.

HTH
-- 
René Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cron issue

2005-06-29 Thread Larry Hall
At 05:25 PM 6/29/2005, you wrote:
>Imran Merali wrote:
>
>> I am trying to get cron to execute a bash script at a certain time,
>> but it is not doing so. The script itself works well, but it doesn't
>> seem to want to run when i set it up as a cron job. The same thing
>> happens when I try to do something simple like output a timestamp to a
>> text file each minute. This is a fresh install. Additionally, the line
>> in my crontab is identical to that in the crontab on my bsd machine. I
>> used cron_diagnose.sh, but it said my install was fine, with the
>> exception of a little issue with sendmail, which I tried to correct
>> with a symlink to a working mailer.
>[snip]
>
>First look into the Windows Event Viewer + Application, you should find a few
>events that have, among other things, the crond output. 


Also look at '/var/log/cron.log' for info.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cron issue

2005-06-29 Thread René Berber
Imran Merali wrote:

> I am trying to get cron to execute a bash script at a certain time,
> but it is not doing so. The script itself works well, but it doesn't
> seem to want to run when i set it up as a cron job. The same thing
> happens when I try to do something simple like output a timestamp to a
> text file each minute. This is a fresh install. Additionally, the line
> in my crontab is identical to that in the crontab on my bsd machine. I
> used cron_diagnose.sh, but it said my install was fine, with the
> exception of a little issue with sendmail, which I tried to correct
> with a symlink to a working mailer.
[snip]

First look into the Windows Event Viewer + Application, you should find a few
events that have, among other things, the crond output.

Second read $CYGWIN_HOME/usr/share/doc/Cygwin/cron.README and see what you need
to have cron email you.

BTW bash scripts work fine with cron, what you describe as doing should work
with no problem.

HTH
-- 
René Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/