Re: Cron jobs visible

2009-08-10 Thread Thorsten Kampe
* Mark J. Reed (Mon, 10 Aug 2009 08:46:11 -0400) n Mon, Aug 10, 2009 at 8:15 AM, Thorsten Kampe wrote: I upgraded to Windows 7 ... I'll probably wait until 1.7 is out of beta and an official migration document is released. OK, but why are you willing to upgrade to Windows 7 while

Re: Cron jobs visible

2009-08-10 Thread Mark J. Reed
On Mon, Aug 10, 2009 at 9:29 AM, Thorsten Kampe wrote: Only if you assume that Windows 7 is still in beta (which it is not). It won't be released until October. The current version is a release candidate. How is that different from being in beta? Regardless of terminology, both Windows 7 and

Re: Cron jobs visible

2009-08-10 Thread Thorsten Kampe
* Mark J. Reed (Mon, 10 Aug 2009 09:35:06 -0400) On Mon, Aug 10, 2009 at 9:29 AM, Thorsten Kampe wrote: Only if you assume that Windows 7 is still in beta (which it is not). It won't be released until October. Make that it won't be available in the shops until October. The current version

Re: Cron jobs visible

2009-08-10 Thread Mark J. Reed
On Mon, Aug 10, 2009 at 10:28 AM, Thorsten Kampe wrote: The current version is RTM - Released to manufacturing since last Thursday. Ah, missed that milestone. I retract the observation then. -- Mark J. Reed markjr...@gmail.com -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Cron jobs visible

2009-08-10 Thread Thorsten Kampe
* Thorsten Kampe (Mon, 10 Aug 2009 16:28:30 +0200) The current version is RTM - Released to manufacturing since last Thursday. Actually it's RTM for a month now. Available on Technet and MSDN since last Thursday. Thorsten -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Cron jobs visible

2009-08-10 Thread Corinna Vinschen
On Aug 10 14:15, Thorsten Kampe wrote: * Corinna Vinschen (Mon, 10 Aug 2009 13:34:25 +0200) On Aug 10 12:57, Thorsten Kampe wrote: I upgraded to Windows 7 on Sunday and now whenever cron runs a job, the new forked cron process is visible in a console window. I suspect that this might

Re: Cron jobs visible

2009-08-10 Thread Thorsten Kampe
* Corinna Vinschen (Mon, 10 Aug 2009 16:38:54 +0200) On Aug 10 14:15, Thorsten Kampe wrote: * Corinna Vinschen (Mon, 10 Aug 2009 13:34:25 +0200) On Aug 10 12:57, Thorsten Kampe wrote: I upgraded to Windows 7 on Sunday and now whenever cron runs a job, the new forked cron process

Re: Cron jobs visible

2009-08-10 Thread Christopher Faylor
cron runs a job, the new forked cron process is visible in a console window. I suspect that this might be related to the new Console Window Host (conhost.exe) as I also get this window when I run screen inside a shell. Cygwin 1.5.25, I presume. Cygwin 1.5.25 is not supported under W7. Use Cygwin

Re: Cron jobs visible

2009-08-10 Thread Corinna Vinschen
On Aug 10 18:31, Thorsten Kampe wrote: * Corinna Vinschen (Mon, 10 Aug 2009 16:38:54 +0200) On Aug 10 14:15, Thorsten Kampe wrote: * Corinna Vinschen (Mon, 10 Aug 2009 13:34:25 +0200) On Aug 10 12:57, Thorsten Kampe wrote: I upgraded to Windows 7 on Sunday and now whenever cron runs

Re: Cron jobs visible

2009-08-10 Thread Larry Hall (Cygwin)
On 08/10/2009 12:44 PM, Corinna Vinschen wrote: snip And there's no way back after an update. But as I noted in my zillion (apparently unread) test announcements, it's no problem to run 1.5 and 1.7 installations in separate directories side-by-side. I don't know about anyone else, but I

Re: Cron jobs visible

2009-08-10 Thread Christopher Faylor
On Mon, Aug 10, 2009 at 02:54:28PM -0400, Larry Hall (Cygwin) wrote: On 08/10/2009 12:44 PM, Corinna Vinschen wrote: snip And there's no way back after an update. But as I noted in my zillion (apparently unread) test announcements, it's no problem to run 1.5 and 1.7 installations in separate

Re: Cron jobs visible

2009-08-10 Thread Ralph Hempel
Christopher Faylor wrote: On Mon, Aug 10, 2009 at 02:54:28PM -0400, Larry Hall (Cygwin) wrote: On 08/10/2009 12:44 PM, Corinna Vinschen wrote: snip And there's no way back after an update. But as I noted in my zillion (apparently unread) test announcements, it's no problem to run 1.5 and

Re: Cron jobs visible

2009-08-10 Thread Larry Hall (Cygwin)
On 08/10/2009 04:07 PM, Ralph Hempel wrote: Christopher Faylor wrote: On Mon, Aug 10, 2009 at 02:54:28PM -0400, Larry Hall (Cygwin) wrote: On 08/10/2009 12:44 PM, Corinna Vinschen wrote: snip And there's no way back after an update. But as I noted in my zillion (apparently unread) test

Re: Cron jobs visible

2009-08-10 Thread Christopher Faylor
On Mon, Aug 10, 2009 at 04:44:09PM -0400, Larry Hall (Cygwin) wrote: On 08/10/2009 04:07 PM, Ralph Hempel wrote: Christopher Faylor wrote: On Mon, Aug 10, 2009 at 02:54:28PM -0400, Larry Hall (Cygwin) wrote: On 08/10/2009 12:44 PM, Corinna Vinschen wrote: snip And there's no way back after

Re: Cron jobs visible

2009-08-10 Thread Mark J. Reed
On Mon, Aug 10, 2009 at 5:17 PM, Christopher Faylor wrote: Actually, I meant Cgywin 1.7.  Sorry for the cornfusion. cgf apologizes! In writing! Alert the media! :) -- Mark J. Reed markjr...@gmail.com -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: problems with cron permissions

2009-08-09 Thread Larry Hall (Cygwin)
On 08/08/2009 11:29 PM, michael trott wrote: I had already set Cron to run as my service from within Cygwin, and also under services.msc Cron is running as me. Are they the only two area's it need to me set? You want to re-run 'cron-config' specifying that you want to run the service as your

problems with cron permissions

2009-08-08 Thread michael trott
hi all, sure uve heard it all before. trying to get cron to backup my system to a samba share thats mounted to a local drive. i can run the script and back up fine. This is my crontab: mich...@home-pc ~ $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab

Re: problems with cron permissions

2009-08-08 Thread Reini Urban
2009/8/8 michael trott: sure uve heard it all before. trying to get cron to backup my system to a samba share thats mounted to a local drive. i can run the script and back up fine. This is my crontab: Try the same as user SYSTEM and not as your local user and you will get the same error

Re: problems with cron permissions

2009-08-08 Thread michael trott
I had already set Cron to run as my service from within Cygwin, and also under services.msc Cron is running as me. Are they the only two area's it need to me set? thanks, i really appreciate it :) On Sun, Aug 9, 2009 at 7:12 AM, Reini Urbanrur...@x-ray.at wrote: 2009/8/8 michael trott: sure

Intermittent Cron Errors

2009-07-08 Thread Rajiv Garg
Hi, We are seeing intermittent cron errors on some of our servers. We run about a couple of hundred jobs on these servers, and about 5% of them fail with the error can't switch user context). We enabled verbose logging, and in /var/log/cron.log see messages that say cannot set uid for user

Re: Intermittent Cron Errors

2009-07-08 Thread Pierre A. Humblet
- Original Message - From: Rajiv Garg To: cygwin Sent: Wednesday, July 08, 2009 1:14 PM | | Hi, | | We are seeing intermittent cron errors on some of our servers. We run about | a couple of hundred jobs on these servers, and about 5% of them fail with | the error can't switch user

Re: Intermittent Cron Errors

2009-07-08 Thread Rajiv Garg
Pierre, Thanks for your reply. Yes, both the job and service are running under the same account (orderworker). I was looking into this a bit more, and found that we are getting the following event in our security event log at the exact time of the cron can't switch user context error

Re: Intermittent Cron Errors

2009-07-08 Thread Pierre A. Humblet
- Original Message - From: Rajiv Garg To: Pierre A. Humblet Sent: Wednesday, July 08, 2009 5:47 PM Subject: Re: Intermittent Cron Errors | | Pierre, | | Thanks for your reply. | | Yes, both the job and service are running under the same account (orderworker). I was looking

Re: Intermittent Cron Errors

2009-07-08 Thread Rajiv Garg
Compiled and ran -- here's the output: $/tmp/testcron.exe name orderworker uid 11130 gid 10513 0 256 512 768 1024 1280 1536 1792 2048 2304 2560 I killed it at this point. No initgroups() or setuid() failures in 2500 tries. Let me know your thoughts. Rajiv -- Problem reports:

Re: Intermittent Cron Errors

2009-07-08 Thread Pierre A. Humblet
. If you end up bypassing the call to setuid when the uids match, please log the non-zero return value of initgroups (in the interest of science). You can look at the cron events by typing cronevents in a shell. Let me know if you need more help. Pierre -- Problem reports: http

Re: Cron jobs stopped working : can't lock cron.pid .. Resouce temporarily unavailable

2009-06-09 Thread Pierre A. Humblet
- Original Message - From: sam naqvi To: cygwin@cygwin.com Sent: Tuesday, June 09, 2009 11:48 AM |i had setup some cron jobs on cygwin last Friday. a few of them were test scripts to see if the cron is firing smoothly on the right time without errors. And there were some actual

Re: Cron jobs stopped working : can't lock cron.pid .. Resouce temporarily unavailable

2009-06-09 Thread sam naqvi
--- On Tue, 6/9/09, Pierre A. Humblet pierre.humb...@ieee.org wrote: From: Pierre A. Humblet pierre.humb...@ieee.org Subject: Re: Cron jobs stopped working : can't lock cron.pid .. Resouce temporarily unavailable To: sam naqvi email_...@yahoo.com, cygwin@cygwin.com Date: Tuesday, June 9

Re: Similar Cron issue--Cron wont do anything

2009-04-24 Thread Pierre A. Humblet
- Original Message - From: LAU2 To: cygwin@cygwin.com Sent: Thursday, April 23, 2009 7:53 PM Subject: Re: Similar Cron issue--Cron wont do anything | | Pierre A. Humblet wrote: | | | - Original Message - | From: LAU2 | To: cygwin@cygwin.com | Sent: Thursday, April 23

Re: Similar Cron issue--Cron wont do anything

2009-04-23 Thread Pierre A. Humblet
- Original Message - From: LAU2 To: cygwin@cygwin.com Sent: Wednesday, April 22, 2009 6:04 PM | | Hi I have been having similar problems with running cron on through cygwin. | | Here is what I have done so far: | | 1) created a simple shell file create_new_dir.sh | snip| | 5

Re: Similar Cron issue--Cron wont do anything

2009-04-23 Thread LAU2
Pierre A. Humblet wrote: - Original Message - From: LAU2 To: cygwin@cygwin.com Sent: Wednesday, April 22, 2009 6:04 PM | | Hi I have been having similar problems with running cron on through cygwin. | | Here is what I have done so far: | | 1) created a simple

Re: Similar Cron issue--Cron wont do anything

2009-04-23 Thread LAU2
LAU2 wrote: Pierre A. Humblet wrote: - Original Message - From: LAU2 To: cygwin@cygwin.com Sent: Wednesday, April 22, 2009 6:04 PM | | Hi I have been having similar problems with running cron on through cygwin. | | Here is what I have done so far: | | 1

Re: Similar Cron issue--Cron wont do anything

2009-04-23 Thread Pierre A. Humblet
- Original Message - From: LAU2 To: cygwin@cygwin.com Sent: Thursday, April 23, 2009 10:39 AM Subject: Re: Similar Cron issue--Cron wont do anything | Pierre A. Humblet wrote: | - Original Message - | From: LAU2 | To: cygwin@cygwin.com | Sent: Wednesday, April 22, 2009 6

Re: Similar Cron issue--Cron wont do anything

2009-04-23 Thread Pierre A. Humblet
| | | | | | Hi I have been having similar problems with running cron on through | cygwin. | | | | Here is what I have done so far: | | | | 1) created a simple shell file create_new_dir.sh | | | snip| | | 5) checked the /var/log/cron and here is what it said | | | | unable to set groups

Re: Similar Cron issue--Cron wont do anything

2009-04-23 Thread LAU2
: Wednesday, April 22, 2009 6:04 PM | | | | | | Hi I have been having similar problems with running cron on through | cygwin. | | | | Here is what I have done so far: | | | | 1) created a simple shell file create_new_dir.sh | | | snip| | | 5) checked the /var/log/cron

Re: cron does not do anything

2009-04-22 Thread Pierre A. Humblet
does take more than one minute to be effective. Once I changed it to * * * * *, I saw an error message in /var/log/messages saying (CRON) error (can't cd to HOME), which is the second problem. For the record, my cygwin auto-generated /etc/passwd shows my home dir to be /cygdrive/h, which is an NT

Similar Cron issue--Cron wont do anything

2009-04-22 Thread LAU2
Hi I have been having similar problems with running cron on through cygwin. Here is what I have done so far: 1) created a simple shell file create_new_dir.sh #!/bin/sh echo test mkdir /home/landon/scripts/HIPPO 2) ran shell in command prompt and it worked perfectly. 3) created a text file

cron does not do anything

2009-04-21 Thread Ting Zhou
I'd like to report a bug with Vixie cron. I have cygwin installed with cron option. And I ran cron-config and set up everything. Cron-diagnose script didn't find any problem. Cron service was also started without problem. However, cron just wouldn't run the simple command I set up

Re: cron does not do anything

2009-04-21 Thread Pierre A. Humblet
- Original Message - From: Ting Zhou To: cygwin@cygwin.com I'd like to report a bug with Vixie cron. I have cygwin installed with cron option. And I ran cron-config and set up everything. Cron-diagnose script didn't find any problem. Cron service was also started without problem

Re: cron does not do anything

2009-04-21 Thread William Sutton
Did you check that your cron job line is formatted correctly? If your line is literally of the form /usr/bin/touch /tmp/abcd then it definitely won't run because it is incorrectly written. William Sutton On Tue, 21 Apr 2009, Pierre A. Humblet wrote: - Original Message - From

RE: cron does not do anything

2009-04-21 Thread Ting Zhou
-Original Message- From: William Sutton [mailto:will...@trilug.org] Sent: Tuesday, April 21, 2009 10:26 AM To: Pierre A. Humblet Cc: Ting Zhou; cygwin@cygwin.com Subject: Re: cron does not do anything Did you check that your cron job line is formatted correctly? If your line

Re: cron does not do anything

2009-04-21 Thread Pierre A. Humblet
all along. Let me know if I can supply further diagnostic information. ** Right, cron does nothing. But ... The job is supposed to run at 19:28 every day You started cron at 19:26:30, it's not clear if the crontab existed then. You edited the crontab at 19:27:19 When 19:28 came, cron

RE: cron does not do anything

2009-04-21 Thread Ting Zhou
an error message in /var/log/messages saying (CRON) error (can't cd to HOME), which is the second problem. For the record, my cygwin auto-generated /etc/passwd shows my home dir to be /cygdrive/h, which is an NT mounted share - not sure why is it set to that and why cron couldn't cd to it. Anyway, I

Re: cron does not do anything

2009-04-21 Thread Larry Hall (Cygwin)
Ting Zhou wrote: The first problem, yes, I was a bit impatient and should've waited one more minute. It seems crontab change does take more than one minute to be effective. Once I changed it to * * * * *, I saw an error message in /var/log/messages saying (CRON) error (can't cd to HOME), which

Problems running a vbscript from cron

2009-04-16 Thread Derek Wallace
Hi All, I have written a simple vbscript. Its purpose is to convert an excel .xls file to .csv. The script runs fine under Cygwin. cscript xls2csv.vbs myexcel.xls myexcel.xls I am trying to get the script to be run every night by setting up a cron job. I have the cron service running and ive

Re: [RFU 1.7] cron-4.1-57

2009-02-06 Thread Corinna Vinschen
On Feb 5 14:45, Pierre A. Humblet wrote: http://mysite.verizon.net/phumblet/cron-4.1-57/setup.hint http://mysite.verizon.net/phumblet/cron-4.1-57/cron-4.1-57.tar.bz2 http://mysite.verizon.net/phumblet/cron-4.1-57/cron-4.1-57-src.tar.bz2 Uploaded. Thanks, Corinna -- Corinna Vinschen

[RFU 1.7] cron-4.1-57

2009-02-05 Thread Pierre A. Humblet
Here is a version of cron for Cygwin 1.7 http://mysite.verizon.net/phumblet/cron-4.1-57/setup.hint http://mysite.verizon.net/phumblet/cron-4.1-57/cron-4.1-57.tar.bz2 http://mysite.verizon.net/phumblet/cron-4.1-57/cron-4.1-57-src.tar.bz2 Pierre

Re: cron_diagnose reporting errors while using cron-config on Cygwin 1.7

2008-12-11 Thread Pierre A. Humblet
- Original Message - From: Robert Pendell To: cygwin Sent: Thursday, December 11, 2008 12:24 AM Subject: cron_diagnose reporting errors while using cron-config | While running cron-config I chose to run as a privileged user. Here | is the output from the script. snip || | Can I

Re: cron_diagnose reporting errors while using cron-config on Cygwin 1.7

2008-12-11 Thread Robert Pendell
On Thu, Dec 11, 2008 at 4:31 AM, Pierre A. Humblet pierre.humb...@ieee.org wrote: - Original Message - From: Robert Pendell To: cygwin Sent: Thursday, December 11, 2008 12:24 AM Subject: cron_diagnose reporting errors while using cron-config | While running cron-config I chose

cron_diagnose reporting errors while using cron-config

2008-12-10 Thread Robert Pendell
While running cron-config I chose to run as a privileged user. Here is the output from the script. $ cron-config Do you want to install the cron daemon as a service? (yes/no) yes Enter the value of CYGWIN for the daemon: [ntsec smbntsec] ntsec smbntsec The service can run either as yourself

Re: Please upload cron-4.1-7

2008-12-03 Thread Christopher Faylor
On Wed, Dec 03, 2008 at 01:06:28PM -0500, Pierre A. Humblet wrote: Please upload cron-4.1-7 and delete the oldest version http://mysite.verizon.net/phumblet/cron-4.1-7/cron-4.1-7.tar.bz2 http://mysite.verizon.net/phumblet/cron-4.1-7/cron-4.1-7-src.tar.bz2 Uploaded. cgf

Problem with Cron and Permissions...

2008-11-25 Thread Jim Kogler
I recently upgraded cygwin (current version info at end of email) from a fairly old version ( at least 3 years old...) and have run into this problem: I have a cron job, that runs a scrip on a SAMBA mount. The script writes to the SAMBA mount, here is a bit of the script: -- Script Cut

Re: Problem with Cron and Permissions...

2008-11-25 Thread Pierre A. Humblet
- Original Message - From: Jim Kogler To: cygwin Sent: Tuesday, November 25, 2008 4:42 PM Subject: Problem with Cron and Permissions... |I recently upgraded cygwin (current version info at end of email) from a | fairly old version ( at least 3 years old...) and have run

Problems with cron

2008-10-20 Thread Jörg Schreiber
Hi, I've installed cygwin and I'm very pleased with it. Now I want to use cron to run some kind of backup script where I need the possibilities of a real shell (not DOS). After installing cron and ssmtp I first got e-mails from cron. It seems to run, but since I've started cron as a service

Re: Problems with cron

2008-10-20 Thread Pierre A. Humblet
- Original Message - From: Jörg Schreiber To: cygwin@cygwin.com Sent: Monday, October 20, 2008 11:31 AM Subject: Problems with cron Hi, I've installed cygwin and I'm very pleased with it. Now I want to use cron to run some kind of backup script where I need the possibilities of a real

Re: Cron error

2008-09-23 Thread Pierre A. Humblet
- Original Message - From: Senthil Kuppusamy To: cygwin@cygwin.com Sent: Tuesday, September 23, 2008 6:31 AM Subject: Cron error | Hi, | | Attached is the cronbug.txt. Please let me know what i am missing in | starting the crontab The good news is that there are no errors. cron

Re: cron without sendmail generates bogus logfile names

2008-09-10 Thread Linus Hicks
On Tue, Sep 9, 2008 at 6:26 PM, Larry Hall (Cygwin) wrote: Try running the mailer script through 'd2u'. If that doesn't work, it suggests a difference in the environment for the cron service versus your interactive shell. Any chance you have another, Win32- native date hanging around

cron without sendmail generates bogus logfile names

2008-09-09 Thread Linus Hicks
The poor man's mailer included as part of the cron package uses the following construct to generate part of the filename used in making log file names: DATE=$(date '+%Y%m%d_%H%M%S') It then generates the filename as: FILE=/tmp/cron.$DATE.$$.log However, it seems to be tacking on a CR character

Re: cron without sendmail generates bogus logfile names

2008-09-09 Thread Larry Hall (Cygwin)
Linus Hicks wrote: The poor man's mailer included as part of the cron package uses the following construct to generate part of the filename used in making log file names: DATE=$(date '+%Y%m%d_%H%M%S') It then generates the filename as: FILE=/tmp/cron.$DATE.$$.log However, it seems

cron-config bug

2008-09-08 Thread Cyrille Lefevre
Hi, the bug is : 2008/09/08 06:00:02 [SYSTEM] /usr/sbin/cron: PID 4032: (CRON) error (can't switch user context) the problem is about cron-config under windows vista which install the cron service under the SYSTEM account instead od cyg_server account. uname -a is : CYGWIN_NT-5.1

Re: cron-config bug

2008-09-08 Thread Cyrille Lefevre
Cyrille Lefevre a écrit : Hi, the bug is : 2008/09/08 06:00:02 [SYSTEM] /usr/sbin/cron: PID 4032: (CRON) error (can't switch user context) the problem is about cron-config under windows vista which install the cron service under the SYSTEM account instead od cyg_server account. uname

Re: trouble running a script with a while loop from cron

2008-07-22 Thread Mark Horning
The windows sort command was definitely the problem. I had not set a PATH for cron so it was using the default PATH. When I set a PATH in the crontab it resolved the issue. One thing I'm not quite sure of is why didn't it work properly from cron when I specified the full path to sort in the script

cron and mail: a stupid question (please don't kill me)

2008-07-21 Thread Julio Emanuel
Hi all, I've searched a bit already, and have been through the cron, ssmtp, and crontab manpages. Still, there is something that I don't quite understand: why on earth the cron job's output are put in e-mails?? I don't have any experience with the mailing subsystem of unix / cygwin worlds, so

Re: cron and mail: a stupid question (please don't kill me)

2008-07-21 Thread Brian Dessent
Julio Emanuel wrote: I've searched a bit already, and have been through the cron, ssmtp, and crontab manpages. Still, there is something that I don't quite understand: why on earth the cron job's output are put in e-mails?? cron was written with the intention of being able to run jobs

Re: cron and mail: a stupid question (please don't kill me)

2008-07-21 Thread r
On 2008-07-21, Julio Emanuel [EMAIL PROTECTED] wrote: Hi all, I've searched a bit already, and have been through the cron, ssmtp, and crontab manpages. Still, there is something that I don't quite understand: why on earth the cron job's output are put in e-mails?? Lucky you !! I'm finding

trouble running a script with a while loop from cron

2008-07-21 Thread Mark Horning
Hi All, I've a problem with a script and I've been trying to troubleshoot it. When I run it by hand it works fine but it fails from cron. From what i can gather it doesn't like my while loop and the error I'm logging is The system cannot find the file specified. Here are the particulars

Re: trouble running a script with a while loop from cron

2008-07-21 Thread Mark J. Reed
On Mon, Jul 21, 2008 at 5:14 PM, Mark Horning [EMAIL PROTECTED] wrote: + sort -u -uThe system cannot find the file specified. That message is coming from the Windows SORT command, not the Cygwin one. Check cron's $PATH - it must have the Windows system dir near the front. -- Mark J. Reed

Re: trouble running a script with a while loop from cron

2008-07-21 Thread Mark J. Reed
On Mon, Jul 21, 2008 at 5:21 PM, Mark J. Reed wrote: On Mon, Jul 21, 2008 at 5:14 PM, Mark Horning email address here wrote: Rats. Forgot to PC[M]MTNQREAI[M]R. Sorry. -- Mark J. Reed [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: trouble running a script with a while loop from cron

2008-07-21 Thread Christopher Faylor
On Mon, Jul 21, 2008 at 05:27:38PM -0400, Mark J. Reed wrote: On Mon, Jul 21, 2008 at 5:21 PM, Mark J. Reed wrote: On Mon, Jul 21, 2008 at 5:14 PM, Mark Horning email address here wrote: Rats. Forgot to PC[M]MTNQREAI[M]R. Sorry. Sorry won't cut it. We've unleashed the hippos on you. cgf

Re: cron jobs and email

2008-07-20 Thread Reini Urban
2008/7/20 r: I've a problem with cron, it does not send email when the job is done. Very good! I'm seeing improvement following http://www.faqs.org/rfcs/rfc1855.html Netiquette Esp. Mail should have a subject heading which reflects the content of the message. I read /usr/share/doc/Cygwin

Re: cron jobs and email

2008-07-20 Thread r
Reini Urban rurban at x-ray.at writes: 2008/7/20 r: I've a problem with cron, it does not send email when the job is done. Very good! I'm seeing improvement following http://www.faqs.org/rfcs/rfc1855.html Netiquette Esp. Mail should have a subject heading which reflects the content

(CRON) error (can't switch user context)

2008-07-19 Thread Philip Charlebois
Hello, I have setup Cygwin and cron on two machines. On the first machine, a Windows XP, everything went OK. Cron is running and my echo statement is being written to a file. On the second machine, a Windows Vista, cron appears to be running correctly but my echo statement

cron 00.27

2008-07-19 Thread r
I'm trying to use cron, I created a file called backup_cygwin 59 18 * * 6 /bin/backup_cygwin.sh 00 27 20 7 * /bin/prova.sh and I put it in /var/cron/tabs/ then I create prova.sh as follow SHELL=/bin/sh

Re: cron 00.27

2008-07-19 Thread Ken Jackson
I'm trying to use cron, I created a file called backup_cygwin 59 18 * * 6 /bin/backup_cygwin.sh 00 27 20 7 * /bin/prova.sh and I put it in /var/cron/tabs/ Rather than putting putting it in a directory, it's better to let the crontab command do it. Put those two lines

Re: cron 00.27

2008-07-19 Thread René Berber
r wrote: I'm trying to use cron, I created a file called backup_cygwin 59 18 * * 6 /bin/backup_cygwin.sh 00 27 20 7 * /bin/prova.sh and I put it in /var/cron/tabs/ Wrong place! then I create prova.sh as follow Wrong sequence... first create the script, then install it in cron. SHELL

Re: cron 00.27

2008-07-19 Thread r
to be exec great Just a last question, I started cron manually with cron-config, do you know how can I configure it to start automatically when windows starts ? Does cron starts in background even if I have not cygwin consolle opened ? bfr -- Unsubscribe info: http://cygwin.com/ml

Re: cron 00.27

2008-07-19 Thread r
René Berber r.berber at computer.org writes: I started cron ( with cron-config command, ( is it possible to configure it to start at win boot ? )) Cron-config did that. so I did once and from next time it will be started at boot time ? Because I did not find this information everywhere

Re: cron 00.27

2008-07-19 Thread René Berber
r wrote: I started cron ( with cron-config command, ( is it possible to configure it to start at win boot ? )) Cron-config did that. so I did once and from next time it will be started at boot time ? Because I did not find this information everywhere. Yes it will start at boot time

RE: CRON can't cd to HOME

2008-07-04 Thread Dave Korn
Kevin M wrote on 03 July 2008 18:31: [ snip masses of quotes] -- 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 can't cd to HOME

2008-07-03 Thread Kevin M
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

Re: CRON can't cd to HOME

2008-07-03 Thread Larry Hall (Cygwin)
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

Re: CRON can't cd to HOME

2008-07-03 Thread Pierre A. Humblet
- Original Message - From: Kevin M To: cygwin Sent: Thursday, July 03, 2008 1:31 PM Subject: Re: CRON can't cd to HOME | radski has brought this to us : | Pierre, | | fantastic help, can't thank you enough - I didn't realize you could | explicitly set HOME in the crontab - adding

CRON can't cd to HOME

2008-07-01 Thread radski
Hello, I'm trying to CRON, but I'm receiving error in the windows log saying it can't cd to HOME; yet cron_diagnose.sh completes without any errors. There doesn't seem to be much reference to this error out there, I've tried moving home from outside of the cygwin directory to inside and changed

Re: CRON can't cd to HOME

2008-07-01 Thread Pierre A. Humblet
HOME can be specified in the crontab, else it is taken from /etc/passwd You may have access issues if HOME is on a network drive. If so, consider creating a different HOME on a local disk, or running cron as yourself. Pierre - Original Message - From: radski [EMAIL PROTECTED

Re: CRON can't cd to HOME

2008-07-01 Thread radski
( /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

[PATCH] Bug in /usr/bin/cron-config (needs quotation marks)

2008-06-13 Thread Will Palmer
A couple of places in /usr/bin/cron-config (cron version 4.1-6) are missing quotation marks around variables in tests, resulting in errors when the username contains spaces. Example errors: Do you want to install the cron daemon as a service? (yes

Re: Cron will not start jobs - cygwin/XP

2008-06-10 Thread Larry Hall (Cygwin)
[EMAIL PROTECTED] wrote: Hello, I have a script that runs fine from the command line, but I can not make CRON automate the running of this script This sounds like the classic example of a script that has external environment requirements that aren't met by the script itself. Are you sure

Re: Cron will not start jobs - cygwin/XP

2008-06-10 Thread bruceb75
the script 'datewrite.sh' from the command line with no problems. I can see that the service 'cron' is installed and working in XP and that the service kicks off every minute... however, there is never any output from the script to the output file 'datetime.txt' ps -a shows cron running, logs

Re: Cron will not start jobs - cygwin/XP

2008-06-10 Thread Nicholas Volk
0-59 * * * * cygdrive/c/cygwin/home/bruceb/datewrite.sh /dev/null 21 Isn't there a '/' missing before cygdrive... br, Nicholas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Blair Sutton
On further investigation, it appears powershell does alias -c for -command hence no changes would be required for cron to support it. However, the change would still be useful for other shells or perhaps interpreters like Perl. On Pierre's offered solution: I now do recall how exec works

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Christopher Faylor
On Fri, Jun 06, 2008 at 09:16:41AM +0100, Blair Sutton wrote: On further investigation, it appears powershell does alias -c for -command hence no changes would be required for cron to support it. However, the change would still be useful for other shells or perhaps interpreters like Perl

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Pierre A. Humblet
- Original Message - From: Blair Sutton To: cygwin Sent: Friday, June 06, 2008 4:16 AM Subject: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe | On further investigation, it appears powershell does alias -c for | -command hence no changes would

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Linda Walsh
Christopher Faylor wrote: Mr. Vixie rightly assumed that cron was running in a UNIX-like environment where shells take the -c option. Ditto the authors of make, vim, and other packages which use the SHELL environment variable. Can we please put this to rest now

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Blair Sutton
Subject: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe | On further investigation, it appears powershell does alias -c for | -command hence no changes would be required for cron to support it. | However, the change would still be useful for other shells

Re: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Blair Sutton
what you want. And what's wrong with doing this with what cron already provides: * * * * * /cygdrive/c/windows/system32/windowspowershell/v1.0/powershell - Command 'c:\documents and settings\blair sutton\my documents\windowspowershell\test\test.ps1 one two three' This doesn't work. Have you

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Linda Walsh
. I'm not sure if I can do what you want. --- I'm not sure how it would send a duplicate...but I don't use gmail. But's that's no reason why you shouldn't hack into Google's mail servers and fix the problem..*cough*:-) And what's wrong with doing this with what cron already

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Pierre A. Humblet
- Original Message - From: Blair Sutton To: cygwin Sent: Wednesday, June 04, 2008 12:48 PM Subject: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe | Hi | | This is a very simple patch for Cron to allow one to use a shell like | powershell or cmd. I've

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Blair Sutton
I'm not sure if that's a very good solution. It spawns an unnecessary bourne shell process on each new cron job. Don't worry if you don't want to make the change. I will maintain my own separate branch and perhaps post the patch with some instructions somewhere online where other people may find

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Mark J. Reed
just me. On 6/5/08, Blair Sutton [EMAIL PROTECTED] wrote: I'm not sure if that's a very good solution. It spawns an unnecessary bourne shell process on each new cron job. Don't worry if you don't want to make the change. I will maintain my own separate branch and perhaps post the patch

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 06:43:25PM -0400, Mark J. Reed wrote: The sh process is not extra since it's replaced by the powershell process, right? Unless exec works differently in Cygwin, which is entirely possible Nope, you're right. It is replaced as long as it isn't the top-level cygwin

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 12:47:42PM -0700, Linda Walsh wrote: Blair Sutton wrote: Eric Blake [EMAIL PROTECTED] writes: Why should we patch a cygwin utility to promote the use of a non-cygwin shell? None of the shells are 'cygwin', really, -- they are shells that took their ideas from

<    1   2   3   4   5   6   7   8   9   10   >