Re: cron still not working - even after rerunning cron config

2011-12-17 Thread Andrey Repin
Greetings, Mike Brown!

 Sorry that I can't help you with your cron problem, but have you
 considered using the Windows Task Scheduler instead given the urgency of
 your situation?  It can be used to kick off Cygwin processes just like
 any other.  You'll need to wrap your existing tasks with a script in
 order to ensure that they receive the right environment, but that may be
 easier than debugging cron at this time.

 I hate the Windblows task scheduler.

nnCron, then?
http://nncron.ru/

 Plus, while I am away I might have to remotely get in via ssh (which also
 doesn't work) and change/add entries. That is best done using text editing.

nnCron supports that, if memory not deceiving me.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 17.12.2011, 18:50

Sorry for my terrible english...


--
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



Re: cron still not working - even after rerunning cron config

2011-12-17 Thread Mike Brown
On Sat, Dec 17, 2011 at 06:52:16PM +0400, Andrey Repin wrote:
 nnCron, then?
 http://nncron.ru/
 nnCron supports that, if memory not deceiving me.

As pointed out in a followup posting, I reverted back to version 1.5 and all
is working again.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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



cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
I desperately need to get this fixed as I will be leaving for a trip on
the 20th and have some cron stuff to run while I am gone.

I ran cron-diagnose.sh, which now runs the cron-config, and changed from
just-me to local system and that still didn't fix the problem.  A ps -eaf
shows that cron is now UID SYSTEM and not 0.  But that did not make a
difference.  I set up the following entry in my crontab:

12 14 * * * touch /tmp/crontest

The time came and went and no zero length file showed up.

Running cronevents, the list had the following error line:

2011/12/16 14:12:01 [SYSTEM] /usr/sbin/cron: PID 2524: (Vidiot) WRONG FILE 
OWNER (tabs/Vidiot)

Which file is it exactly complaining about?  My crontab file, which worked
under 1.5?  What is needed to fix it?  Where is the crontab file placed?

Please, time is critical.

Thanks

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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



Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Jeremy Bopp
On 12/16/2011 02:31 PM, Mike Brown wrote:
 I desperately need to get this fixed as I will be leaving for a trip on
 the 20th and have some cron stuff to run while I am gone.
 
 I ran cron-diagnose.sh, which now runs the cron-config, and changed from
 just-me to local system and that still didn't fix the problem.  A ps -eaf
 shows that cron is now UID SYSTEM and not 0.  But that did not make a
 difference.  I set up the following entry in my crontab:
 
 12 14 * * *   touch /tmp/crontest
 
 The time came and went and no zero length file showed up.
 
 Running cronevents, the list had the following error line:
 
 2011/12/16 14:12:01 [SYSTEM] /usr/sbin/cron: PID 2524: (Vidiot) WRONG FILE 
 OWNER (tabs/Vidiot)
 
 Which file is it exactly complaining about?  My crontab file, which worked
 under 1.5?  What is needed to fix it?  Where is the crontab file placed?
 
 Please, time is critical.

Sorry that I can't help you with your cron problem, but have you
considered using the Windows Task Scheduler instead given the urgency of
your situation?  It can be used to kick off Cygwin processes just like
any other.  You'll need to wrap your existing tasks with a script in
order to ensure that they receive the right environment, but that may be
easier than debugging cron at this time.

-Jeremy



signature.asc
Description: OpenPGP digital signature


Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
On Fri, Dec 16, 2011 at 02:38:27PM -0600, Jeremy Bopp wrote:
 Sorry that I can't help you with your cron problem, but have you
 considered using the Windows Task Scheduler instead given the urgency of
 your situation?  It can be used to kick off Cygwin processes just like
 any other.  You'll need to wrap your existing tasks with a script in
 order to ensure that they receive the right environment, but that may be
 easier than debugging cron at this time.

I hate the Windblows task scheduler.  Plus, while I am away I might have to
remotely get in via ssh (which also doesn't work) and change/add entries.
That is best done using text editing.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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



RE: cron still not working - even after rerunning cron config

2011-12-16 Thread Pierre A. Humblet


 -Original Message-
 From:  Mike Brown
 Sent: Friday, December 16, 2011 15:31
 To: cygwin mail list
 
 I desperately need to get this fixed as I will be leaving for a trip on
the 20th and
 have some cron stuff to run while I am gone.
 
 I ran cron-diagnose.sh, which now runs the cron-config, and changed from
just-
 me to local system and that still didn't fix the problem.  A ps -eaf shows
that
 cron is now UID SYSTEM and not 0.  But that did not make a difference.  I
set up
 the following entry in my crontab:
 
 12 14 * * *   touch /tmp/crontest
 
 The time came and went and no zero length file showed up.
 
 Running cronevents, the list had the following error line:
 
 2011/12/16 14:12:01 [SYSTEM] /usr/sbin/cron: PID 2524: (Vidiot) WRONG FILE
 OWNER (tabs/Vidiot)
 
 Which file is it exactly complaining about?  My crontab file, which worked
 under 1.5?  What is needed to fix it?  Where is the crontab file placed?

Yes, it is in /var/cron/tabs/
Problems like this have been reported when a user  is both a local user
and a domain user (2  entries in /etc/passwd).
Cron with suid to the 1st matching passwd entry 
  
Pierre



--
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



Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Jesse Ziser

On 12/16/2011 2:42 PM, Mike Brown wrote:

On Fri, Dec 16, 2011 at 02:38:27PM -0600, Jeremy Bopp wrote:

Sorry that I can't help you with your cron problem, but have you
considered using the Windows Task Scheduler instead given the urgency of
your situation?  It can be used to kick off Cygwin processes just like
any other.  You'll need to wrap your existing tasks with a script in
order to ensure that they receive the right environment, but that may be
easier than debugging cron at this time.


I hate the Windblows task scheduler.  Plus, while I am away I might have to
remotely get in via ssh (which also doesn't work) and change/add entries.
That is best done using text editing.


You could always use remote desktop if you're having problems with ssh 
(again, given the urgency of your situation).


--
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



Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
On Fri, Dec 16, 2011 at 04:21:45PM -0500, Pierre A. Humblet wrote:
 Yes, it is in /var/cron/tabs/

Found it.  I went looking for tabs and found it.

 Problems like this have been reported when a user  is both a local user
 and a domain user (2  entries in /etc/passwd).
 Cron with suid to the 1st matching passwd entry 

I'm only in the passwd file once:

SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-SATELLITE\Administrator,S-1-5-21-1957994488-1960408961-725345543-500:/home/Administrator:/bin/bash
ASPNET:unused_by_nt/2000/xp:1004:513:ASP.NET Machine 
Account,U-SATELLITE\ASPNET,S-1-5-21-1957994488-1960408961-725345543-1004:/home/ASPNET:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-SATELLITE\Guest,S-1-5-21-1957994488-1960408961-725345543-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1000:513:Remote Desktop Help Assistant 
Account,U-SATELLITE\HelpAssistant,S-1-5-21-1957994488-1960408961-725345543-1000:/home/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft 
Corporation,L=Redmond,S=Washington,C=US,U-SATELLITE\SUPPORT_388945a0,S-1-5-21-1957994488-1960408961-725345543-1002:/home/SUPPORT_388945a0:/bin/bash
Vidiot:unused_by_nt/2000/xp:1003:513:U-SATELLITE\Vidiot,S-1-5-21-1957994488-1960408961-725345543-1003:/home/Vidiot:/bin/zsh
sshd:unused:1005:513:sshd 
privsep,U-SATELLITE\sshd,S-1-5-21-1343024091-507921405-839522115-1005:/var/empty:/bin/false

So, I saved a copy of my crontab with -l.  I then did a -r.
The .../tabs/Vidiot was then removed,  I then did a -e and read in the contents
of the saved file and reset the entry to touch the file in /tmp.

Same damn error.  It isn't the wrong file owner.  It belongs to Vidiot:None and
is 644.

So, in desperation, I reinstalled again, this time setting it to run as me.
I do not get the wrong file owner error anymore.  This time it says RELOAD
(tabs/Vidiot), yet it STILL refuses to run the entry, any entry.  I set one
of the jobs I normally do and it wouldn't start it.

Why is 1.7 having so much trouble with this when 1.5 didn't?

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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



Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
On Fri, Dec 16, 2011 at 03:27:16PM -0600, Jesse Ziser wrote:
 You could always use remote desktop if you're having problems with ssh 
 (again, given the urgency of your situation).

I might put the third-party sshd back in.  While RD is an option, because of
the heavy load on the DSL, it tends to crash a lot and take forever to
start.

The cron issue is killing me.  I'm almost ready to regress back to 1.5.
All of those files are on the other XP box, which I haven't upgraded.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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