Re: cron problem -- can't switch user context

2021-07-20 Thread Brian Inglis

On 2021-07-19 11:40, Jeremy Hetzler via Cygwin wrote:

Upon installing Cygwin and cron on a new Windows Server 2019 machine,
we are unable to get cron to work.

I installed cron using cron-config. Cron is configured to run under
account cyg_server, which cron-config set up. cron-config reported
that "cyg_server is a valid privileged account".


From cronevents, I see numerous errors saying "can't switch user

context". It looks like every time cron tries to run a job, it emits
one of these errors.

Example:

2021/07/15 18:45:02 [cyg_server] /usr/sbin/cron: PID 6421: (CRON) error (can't 
switch user context)


See attached for cronbug output.

I tried rebooting the machine, but this did not help.

How can we get cron to work on this new machine?

Please copy me on any responses; thank you.


Use the recommended local System account and you should have no problems 
with recent Cygwin services under recent Windows:


"To run multiple users, cron must change user context without knowing 
the passwords. There are three methods to do that, as explained in


http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1

If all the cron users have executed "passwd -R" (see man passwd),
which provides access to network drives, or if you are using the
[obsolete] cyglsa package, then cron should run under the
local system account."

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

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


Cron problem with cron popup windows

2008-01-23 Thread cygwin . 20 . maillinglist
Hi folk,

I have the problem that I get cron popup windows. I change the cron
service, so that he can interact with the desktop. This was necessary to
start excel from cron. First everything was ok. But after I rebooted the
PC now cron startet to open a window always when a cron job started. How
can I get rid of this behaviour. 

Thank for any help 

 Franz

IMPORTANT
I will read replies only from the mailing list. 
If you send me email directly it will be deleted.





--
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 problem with cron popup windows

2008-01-23 Thread Dave Korn
On 23 January 2008 13:00, cygwin.20.maillinglist wrote:

 Hi folk,
 
 I have the problem that I get cron popup windows. I change the cron
 service, so that he can interact with the desktop. This was necessary to
 start excel from cron. First everything was ok. But after I rebooted the
 PC now cron startet to open a window always when a cron job started. How
 can I get rid of this behaviour.

  Redirect stdout and stderr to /dev/null in your commandline in the crontab
(i.e. append /dev/null 2/dev/null)?

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Cygwin Cron problem

2007-08-08 Thread shash

Hi,

Before I start, I would like to inform that, I went through all FAQs and
other threads before posting here.
I came across this thread where I faced the similar error, but couldn't get
what they did to resolve it.

http://www.nabble.com/1.5.21-1%3AWindows-2003-Server---Cygwin-Cron-tf2425192.html#a6972241

I 'm trying to schedule a shell script on cygwin using cron. No matter what
I do I don't seem to get the cron job executing my bash script.

My script is temp.sh

echo `date`  /home/test/temp.log

crontab -e is having the following details

* * * * * sh /home/test/temp.sh  /home/test/temp.sh.err 21

I did use the paths in the script itself and I also used the windows path
where the cygwin installed(/cygdrive/d/cygwin/).

I also tried using the following by editing the crontab:

* * * * * date  /home/test/date.txt

Still not working. I don't have administrator login. I ran the
cron_diagnose.sh and it din't give me any errors.

What am I doing wrong? Please help I 'm a newbie to Cygwin.

Thanks
Shash
-- 
View this message in context: 
http://www.nabble.com/Cygwin-Cron-problem-tf4235168.html#a12049954
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
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: Cygwin Cron problem

2007-08-08 Thread Pierre A. Humblet
- Original Message - 
From: shash shashikiran.v
To: cygwin
Sent: Wednesday, August 08, 2007 5:39 AM
Subject: Cygwin Cron problem


| 
| Hi,
| 
| Before I start, I would like to inform that, I went through all FAQs and
| other threads before posting here.
| I came across this thread where I faced the similar error, but couldn't get
| what they did to resolve it.
| 
| 
http://www.nabble.com/1.5.21-1%3AWindows-2003-Server---Cygwin-Cron-tf2425192.html#a6972241
| 
| I 'm trying to schedule a shell script on cygwin using cron. No matter what
| I do I don't seem to get the cron job executing my bash script.
| 
| My script is temp.sh
| 
| echo `date`  /home/test/temp.log
| 
| crontab -e is having the following details
| 
| * * * * * sh /home/test/temp.sh  /home/test/temp.sh.err 21
| 
| I did use the paths in the script itself and I also used the windows path
| where the cygwin installed(/cygdrive/d/cygwin/).
| 
| I also tried using the following by editing the crontab:
| 
| * * * * * date  /home/test/date.txt
| 
| Still not working. I don't have administrator login. I ran the
| cron_diagnose.sh and it din't give me any errors.

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 that after you have tried to launch cron with cron-config.

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: Cygwin Cron problem

2007-08-08 Thread shash

Thanks Pierre, I have mailed to cygwin.


Pierre A. Humblet wrote:
 
 - Original Message - 
 From: shash shashikiran.v
 To: cygwin
 Sent: Wednesday, August 08, 2007 5:39 AM
 Subject: Cygwin Cron problem
 
 
 | 
 | Hi,
 | 
 | Before I start, I would like to inform that, I went through all FAQs and
 | other threads before posting here.
 | I came across this thread where I faced the similar error, but couldn't
 get
 | what they did to resolve it.
 | 
 |
 http://www.nabble.com/1.5.21-1%3AWindows-2003-Server---Cygwin-Cron-tf2425192.html#a6972241
 | 
 | I 'm trying to schedule a shell script on cygwin using cron. No matter
 what
 | I do I don't seem to get the cron job executing my bash script.
 | 
 | My script is temp.sh
 | 
 | echo `date`  /home/test/temp.log
 | 
 | crontab -e is having the following details
 | 
 | * * * * * sh /home/test/temp.sh  /home/test/temp.sh.err 21
 | 
 | I did use the paths in the script itself and I also used the windows
 path
 | where the cygwin installed(/cygdrive/d/cygwin/).
 | 
 | I also tried using the following by editing the crontab:
 | 
 | * * * * * date  /home/test/date.txt
 | 
 | Still not working. I don't have administrator login. I ran the
 | cron_diagnose.sh and it din't give me any errors.
 
 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 that after you have tried to launch cron with cron-config.
 
 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/
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Cygwin-Cron-problem-tf4235168.html#a12054376
Sent from the Cygwin Users mailing list archive at Nabble.com.


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



Cron problem

2006-09-29 Thread Joost Kraaijeveld
Hi,

I am trying to run a cron job on a Windows 2000 server. What I want is
to run a bash or sh shell script and mail the output to me on an other
machine.

Cron is running under the administrator account as a service.

For testing purposes I have a script that is in the home directory of
the administrator account and I want to run that every minute, sending
any output in a email to me.

I actually get an email every minute with the contents:

/bin/sh: Mail: command not found

I assume that I do not fully understand when to use what kind of paths
in my files (and cygwin is NOT in my system path because of name clashes
with other executables but is situated at d:\cygwin). 

Can anyone point me in the right direction?


crontab.exe -l:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3424 installed on Fri Sep 29 08:38:58 2006)
# (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp
$)
# (Use to post in the top of your crontab)
# - minute (0 - 59)
# | --- hour (0 - 23)
# | | - day of month (1 - 31)
# | | | --- month (1 - 12)
# | | | | - day of week (0 - 6) (Sunday=0)
# | | | | |
# * * * * * command to be executed
[EMAIL PROTECTED]
* * * * * * /bin/sh /home/Administrator/crontest

The script that should be run: 
path in Cygwin: /home/Administrator/crontest
path in Windows: d:\cygwin\home\Administrator\crontest


#!/bin/sh

/bin/ls /
/bin/ls /  /home/Administrator/crontest.ls
#end of file




/bin/sh: Mail: command not found



-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl

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

2006-09-29 Thread Joost Kraaijeveld
To respond to my own problem: a * too much in the crontab could
explain a lot .

So problem solved.


-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl

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

2005-10-10 Thread Orfeo Da Via

Hi Igor,

 We can't tell you where you are wrong until you tell us what you mean by
 cron not working...  Does the crontab fail to execute correctly (i.e.,
 every minute after 10:00?

first I'm sorry for my poor English...
in order to explain you what I mean when I wrote cron does't work,
I try with the same command in my linux box (debian sid)


$ uname
 Linux

$ export VISUAL=zile

$ crontab -e

 ...edit the file..

$ crontab -l
 * 8 * * * /bin/date  /home/calox/tmp/date.out 21

$ date
  Mon Oct 10 08:48:36 CEST 2005

$ ls -l  /home/calox/temp
 total 4
 -rw-r--r--  1 calox calox 180 Oct 10 08:54 date.out

$ cat tmp/date.out

 Mon Oct 10 08:49:01 CEST 2005
 Mon Oct 10 08:50:01 CEST 2005
 Mon Oct 10 08:51:01 CEST 2005
 Mon Oct 10 08:52:01 CEST 2005
 Mon Oct 10 08:53:01 CEST 2005
 Mon Oct 10 08:54:01 CEST 2005

for me, in this example, cron works, i.e. in ~/tmp directory I found
the file date.out. In cygwin, with the same crontab, the ~/tmp dir is
empty.


 I think, besides fixing the above typo, reading man 5 crontab would be
 helpful.

Well, I read the man, the README in Paul Vixie source code, and
cron.README but I didn't find where it's teh problem..







 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!

 If there's any real truth it's that the entire multidimensional infinity
 of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

2005-10-10 Thread Igor Pechtchanski
On Mon, 10 Oct 2005, Orfeo Da Via wrote:

 Hi Igor,

  We can't tell you where you are wrong until you tell us what you mean by
  cron not working...  Does the crontab fail to execute correctly (i.e.,
  every minute after 10:00?

 first I'm sorry for my poor English...

No need to apologize.  Besides, it's not *that* poor... :-)

 in order to explain you what I mean when I wrote cron does't work,
 I try with the same command in my linux box (debian sid)

 $ uname
  Linux

 $ export VISUAL=zile

 $ crontab -e

  ...edit the file..

Hmm, one detail that's missing: when was the above done?  Before 8:00, or
after?

 $ crontab -l
  * 8 * * * /bin/date  /home/calox/tmp/date.out 21

 $ date
   Mon Oct 10 08:48:36 CEST 2005

 $ ls -l  /home/calox/temp
  total 4
  -rw-r--r--  1 calox calox 180 Oct 10 08:54 date.out

 $ cat tmp/date.out

  Mon Oct 10 08:49:01 CEST 2005
  Mon Oct 10 08:50:01 CEST 2005
  Mon Oct 10 08:51:01 CEST 2005
  Mon Oct 10 08:52:01 CEST 2005
  Mon Oct 10 08:53:01 CEST 2005
  Mon Oct 10 08:54:01 CEST 2005

 for me, in this example, cron works, i.e. in ~/tmp directory I found
 the file date.out. In cygwin, with the same crontab, the ~/tmp dir is
 empty.

I see.  Again, did you edit the crontab before 8:00, or after?  If after,
did you wait a day?

  I think, besides fixing the above typo, reading man 5 crontab would be
  helpful.

 Well, I read the man, the README in Paul Vixie source code, and
 cron.README but I didn't find where it's teh problem..

It wasn't obvious that you really meant for cron to run your script every
minute starting at 10:00.  Now it's clear that you understand what the
crontab is doing.

Since you're testing cron, I would suggest starting with

*/5 * * * * /bin/date  /home/calox/tmp/date.out 21

and waiting 5 minutes.  If /home/calox/tmp is still empty, then we'll
debug further.

A few obvious questions: does /home/calox/tmp exist in Cygwin?  What are
its permissions (do an ls -ld)?  Are you checking /home/calox/tmp or
~/tmp (IOW, is your $HOME set to /home/calox)?  And, finally, do you have
SHELL set in the Windows environment, and if so, to what value?
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

2005-10-10 Thread Orfeo Da Via


On Mon, 10 Oct 2005, Igor Pechtchanski wrote:

  $ uname
   Linux
 
  $ export VISUAL=zile
 
  $ crontab -e
 
   ...edit the file..

 Hmm, one detail that's missing: when was the above done?  Before 8:00, or
 after?

About at 8.45, all the commands in the example are sequentially.

 Since you're testing cron, I would suggest starting with

 */5 * * * * /bin/date  /home/calox/tmp/date.out 21

 and waiting 5 minutes.  If /home/calox/tmp is still empty, then we'll
 debug further.

In my linux box the my home is /home/calox, in Cygwin my home is
/home/micekiller, then the crontab is

$  crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.592 installed on Mon Oct 10 14:51:37 2005)
 # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
 */5 * * * * /bin/date  /home/micekiller/tmp/date.out 21

so, I waited for 10 min but ~/tmp (/home/micekiller/tmp) is empty.


 A few obvious questions: does /home/calox/tmp exist in Cygwin?  What are
 its permissions (do an ls -ld)?

$ ls -ld ~/tmp/
 drwxrwxrwx+ 2 micekiller None 0 Oct  8 11:03 /home/micekiller/tmp/

Here the group in None, it's OK? (in Linux is the usergroup)...maybe in
Cygwin isn't possible set the group?



 Are you checking /home/calox/tmp or
 ~/tmp (IOW, is your $HOME set to /home/calox)?

my $HOME is

$ echo $HOME
 /home/micekiller

and I check /home/micekiller/tmp

 And, finally, do you have
 SHELL set in the Windows environment, and if so, to what value?

Mmmm, in  'Control Panel- System - Advanced - Environment variable' the
SHELL variable *not* exists, but in Cygwin

$ echo $SHELL
 /bin/bash

If usefull, my environment var is (in win2000 cmd.exe)

C:\set

!C:='C:\cygwin\bin'
ALLUSERSPROFILE='C:\Documents and Settings\All Users'
APPDATA='C:\Documents and Settings\micekiller\Application Data'
BASH=/usr/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_LINENO=() BASH_SOURCE=()
BASH_VERSINFO=([0]=3 [1]=00 [2]=16 [3]=11 [4]=release
[5]=i686-pc-cygwin) BASH_VERSION='3.00.16(11)-release'
COMMONPROGRAMFILES='C:\Program Files\Common Files'
COMPUTERNAME=SN2307128
COMSPEC='C:\WINNT\system32\cmd.exe'
CVSEDITOR=me
CVSROOT=:pserver:[EMAIL PROTECTED]/mnt/dati/home/cvs
CVS_RSH=/bin/ssh
CYGWIN=ntsec
DIRSTACK=()
EDITOR=me
EUID=1000
GROUPS=()
GTK_BASEPATH='C:\Program Files\Common Files\GTK\2.4'
HISTFILE=/home/micekiller/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/micekiller
HOMEDRIVE=C:
HOMEPATH='\'
HOSTNAME=sn2307128
HOSTTYPE=i686 IFS=$' \t\n'
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:
LOGONSERVER='\\SN2307128' MACHTYPE=i686-pc-cygwin
[EMAIL PROTECTED]
MAKE_MODE=unix
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man
NUMBER_OF_PROCESSORS=1
OPTERR=1
OPTIND=1 OS=Windows_NT OS2LIBPATH='C:\WINNT\system32\os2\dll;'
OSTYPE=cygwin
PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/mnt/c/imagemagick:/usr/bin:/mnt/c/texmf/miktex/bin:/mnt/c/WINNT/system32:/mnt/c/WINNT:/mnt/c/shared:/mnt/c/WINNT/Microsoft.NET/Framework/v1.1.4322/:/mnt/c/gs/gs8.11/bin:/mnt/c/GnuWin32/bin:/mnt/c/Pico:/mnt/c/Program
Files/Support
Tools/:.:/cygdriver/c/texUtils/latex2html/bin:/cygdriver/c/Mono/bin:/opt/dar'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl'
PIPESTATUS=([0]=0) PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig PPID=1
PRINTER='\\mlx\Lexmark' PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='x86 Family 15 Model 2 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0207 PROGRAMFILES='C:\Program Files'
PROMPT='$P$G' PS1=$'\\[\\033]0;[EMAIL PROTECTED]
\\[\\033[33m\\w\\033[0m\\]\n$ ' PS2=' ' PS4='+ '
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1 SYSTEMDRIVE=C:
SYSTEMROOT='C:\WINNT'
TEMP=/mnt/c/DOCUME~1/MICEKI~1/LOCALS~1/Temp
TERM=cygwin
TEXDOCVIEW_dvi='cygstart %s' TEXDOCVIEW_html='cygstart %s'
TEXDOCVIEW_pdf='cygstart %s' TEXDOCVIEW_ps='cygstart %s'
TEXDOCVIEW_txt='cygstart %s' TMP=/mnt/c/DOCUME~1/MICEKI~1/LOCALS~1/Temp
UID=1000 USER=micekiller USERDOMAIN=SN2307128 USERNAME=micekiller
USERPROFILE='C:\Documents and Settings\micekiller' VISUAL=jmacs
WINDIR='C:\WINNT'

Thanks...





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

2005-10-10 Thread Igor Pechtchanski
Please make sure your mailer respects the Reply-To: header -- I set it for
a reason.  There's no need to send the message to my mailbox -- I read the
list.

On Mon, 10 Oct 2005, Orfeo Da Via wrote:

 On Mon, 10 Oct 2005, Igor Pechtchanski wrote:

   $ uname
Linux
  
   $ export VISUAL=zile
  
   $ crontab -e
  
...edit the file..
 
  Hmm, one detail that's missing: when was the above done?  Before 8:00, or
  after?

 About at 8.45, all the commands in the example are sequentially.

Interesting...  I thought the semantics were such that if the start time
is missed, the next day is used.  I'll have to re-read the cron
documentation.

  Since you're testing cron, I would suggest starting with
 
  */5 * * * * /bin/date  /home/calox/tmp/date.out 21
 
  and waiting 5 minutes.  If /home/calox/tmp is still empty, then we'll
  debug further.

 In my linux box the my home is /home/calox, in Cygwin my home is
 /home/micekiller, then the crontab is

 $  crontab -l
  # DO NOT EDIT THIS FILE - edit the master and reinstall.
  # (/tmp/crontab.592 installed on Mon Oct 10 14:51:37 2005)
  # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
  */5 * * * * /bin/date  /home/micekiller/tmp/date.out 21

 so, I waited for 10 min but ~/tmp (/home/micekiller/tmp) is empty.

Is your user an administrative user?  Is your home on a network share?
Try changing the above to

*/5 * * * * /bin/date  /tmp/date.out 21

Does /tmp/date.out get created?

  A few obvious questions: does /home/calox/tmp exist in Cygwin?  What are
  its permissions (do an ls -ld)?

 $ ls -ld ~/tmp/
  drwxrwxrwx+ 2 micekiller None 0 Oct  8 11:03 /home/micekiller/tmp/

 Here the group in None, it's OK? (in Linux is the usergroup)...maybe in
 Cygwin isn't possible set the group?

It is possible, but the group shouldn't matter.  Note that '+' at the end
of the permission string means that there are extra ACLs set for that
directory -- some of these may deny the necessary access.

  Are you checking /home/calox/tmp or
  ~/tmp (IOW, is your $HOME set to /home/calox)?

 my $HOME is

 $ echo $HOME
  /home/micekiller

 and I check /home/micekiller/tmp

Ok, just a sanity check.

  And, finally, do you have SHELL set in the Windows environment, and if
  so, to what value?

 Mmmm, in  'Control Panel- System - Advanced - Environment variable' the
 SHELL variable *not* exists, but in Cygwin

 $ echo $SHELL
  /bin/bash

That's ok -- bash sets SHELL if it's not set in the parent environment.

 If usefull, my environment var is (in win2000 cmd.exe)

 C:\set
 [snip]
 PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/mnt/c/imagemagick:/usr/bin:/mnt/c/texmf/miktex/bin:/mnt/c/WINNT/system32:/mnt/c/WINNT:/mnt/c/shared:/mnt/c/WINNT/Microsoft.NET/Framework/v1.1.4322/:/mnt/c/gs/gs8.11/bin:/mnt/c/GnuWin32/bin:/mnt/c/Pico:/mnt/c/Program
  Files/Support 
 Tools/:.:/cygdriver/c/texUtils/latex2html/bin:/cygdriver/c/Mono/bin:/opt/dar'

Aside from the fact that you seem to have run set from a bash shell,
whereas your prompt above is from a cmd shell, and that you use
/cygdriver instead of the standard /cygdrive, the output looks fine.

FWIW, I just installed cron from scratch using /usr/bin/cron-config, put

*/5 * * * * /bin/date  /tmp/date.out 21

in my crontab, and sure enough, /tmp/date.out got created.  Try that one
first, and if it works, you'll know that there is some issue with your
home directory that prevents cron from writing there.

BTW, what are the permissions on /home and /home/micekiller?  They have
to have at least the execute bits set for /home/micekiller/tmp to be
accessible.
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

2005-10-08 Thread Orfeo Da Via

Hi, Igor

 Try doing this without changing your UID to 18.  In fact, is there a
 reason why you didn't use cron-config in the first place?  Why not try
 removing all traces of the cron service, including the log and pid files,
 and using cron-config to install cron?

well, I removed all my cron intallation:

$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
$ rm -f /var/run/cron.pid
$ rm -f /var/log/cron*

$ cygrunsrv -L
 (empty row)

then I restarted cygwin and:

$ /usr/bin/cron-config

...as service? yes
...yourself?   no
...ntsec?  yes
...start ..service? yes

now:

$ cygrunsrv -L
  cron

$ cygrunsrv -Q cron
 Service : cron
 Display name: Cron daemon
 Current State   : Running
 Controls Accepted   : Stop
 Command : /usr/sbin/cron -D

$ crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.300 installed on Sat Oct  8 10:23:16 2005)
 # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp  $)
 * 10 * * * /bin/date  /home/micekiller/tmp/date.out 21

$ ls -l /home/micekiller/ | grep tmp
 drwxr-xr-x+  2 micekiller None 0 Oct  8 11:03 tmp

$ ls -l /home/micekiller/tmp
 total 0

g ...does't work!


$ ll /var/log/cron.log
 -rw-r--r--  1 SYSTEM root 39 Oct  8 10:31 /var/log/cron.log

$ cat /var/log/cron.log
  [836] cron started
  [1032] cron started


where I'm wrong?  Thanks O.

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

2005-10-08 Thread Brian Dessent
Orfeo Da Via wrote:

 $ /usr/bin/cron-config
 
 ...as service? yes
 ...yourself?   no
 ...ntsec?  yes
 ...start ..service? yes
 
 now:
 
 $ cygrunsrv -L
   cron
 
 $ cygrunsrv -Q cron
  Service : cron
  Display name: Cron daemon
  Current State   : Running
  Controls Accepted   : Stop
  Command : /usr/sbin/cron -D
 
 $ crontab -l
  # DO NOT EDIT THIS FILE - edit the master and reinstall.
  # (/tmp/crontab.300 installed on Sat Oct  8 10:23:16 2005)
  # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp  $)
  * 10 * * * /bin/date  /home/micekiller/tmp/date.out 21

I don't see the step where you ran crontab -e to actually edit the
crontab.  How are you doing this?  If you are just editing the file with
an editor and not using crontab -e then that is the reason it is not
working.  You can't just edit the crontab.  At the least you need to HUP
the daemon.

Brian

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

2005-10-08 Thread Igor Pechtchanski
On Sat, 8 Oct 2005, Orfeo Da Via wrote:

  Try doing this without changing your UID to 18.  In fact, is there a
  reason why you didn't use cron-config in the first place?  Why not try
  removing all traces of the cron service, including the log and pid files,
  and using cron-config to install cron?

 well, I removed all my cron intallation:

 $ cygrunsrv --stop cron
 $ cygrunsrv --remove cron
 $ rm -f /var/run/cron.pid
 $ rm -f /var/log/cron*

 $ cygrunsrv -L
  (empty row)

 then I restarted cygwin and:

 $ /usr/bin/cron-config

 ...as service? yes
 ...yourself?   no
 ...ntsec?  yes
 ...start ..service? yes

 now:

 $ cygrunsrv -L
   cron

 $ cygrunsrv -Q cron
  Service : cron
  Display name: Cron daemon
  Current State   : Running
  Controls Accepted   : Stop
  Command : /usr/sbin/cron -D

So far so good...

 $ crontab -l
  # DO NOT EDIT THIS FILE - edit the master and reinstall.
  # (/tmp/crontab.300 installed on Sat Oct  8 10:23:16 2005)
  # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp  $)
  * 10 * * * /bin/date  /home/micekiller/tmp/date.out 21
 ^^^
Whoops.  No good here.  You forgot the '' -- the last part should be
'21'.

 $ ls -l /home/micekiller/ | grep tmp
  drwxr-xr-x+  2 micekiller None 0 Oct  8 11:03 tmp

 $ ls -l /home/micekiller/tmp
  total 0

 g ...does't work!

Eh?  How do you figure that?  I wonder, did you see René Berber's reply
(http://cygwin.com/ml/cygwin/2005-10/msg00147.html)?

 $ ll /var/log/cron.log
  -rw-r--r--  1 SYSTEM root 39 Oct  8 10:31 /var/log/cron.log

 $ cat /var/log/cron.log
   [836] cron started
   [1032] cron started

 where I'm wrong?  Thanks O.

We can't tell you where you are wrong until you tell us what you mean by
cron not working...  Does the crontab fail to execute correctly (i.e.,
every minute after 10:00?

I think, besides fixing the above typo, reading man 5 crontab would be
helpful.

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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
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 problem

2005-10-07 Thread Igor Pechtchanski
On Fri, 7 Oct 2005, Orfeo Da Via wrote:

 Hi,
 I have the cron installed, my crontab is in attacged file crontab-l
 but nothing is going on.

 the attached files is generated by
 $ crontab -l  crontab-l.txt
 $ cron_diagnose.sh  crontab_dia.txt
 $ cygcheck -srv  cygcheck.txt

I'll quote your crontab inline to better comment on it:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.580 installed on Fri Oct  7 14:09:56 2005)
# (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
10 14 * * * /bin/date  /usr/tmp/date.out;

First off, I'm not sure how cron will react to the semicolon at the end.
Secondly, you need to redirect stderr as well as stdout, or deal with cron
trying to mail you the output.

Try

10 14 * * * /bin/date  /usr/tmp/date.out 21

and see if that works for you (it should).  If not, take a look at
/var/log/cron.log and the Windows Event Log for any relevant messages from
cron.
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

2005-10-07 Thread Orfeo Da Via

Hi Igor,
thanks for your quicky reply!

I tryed in this way

$ crontab -l
 10 14 * * * /bin/date  /usr/tmp/date.out 21

but doesn't work!!


In attch. files is generated from:

$ cat /var/log/cron.log  cron.log.txt
$ ps -elf  ps-elf.txt

I've also changed the permission of my cron.pid

$ chown a+x /var/run/cron.pid
$ ls -l /var/run/cron.pid


In event.log the Windows Event Log output.. IMHO is generated from

$ crontab -l

Thanks
Orfeo

 I'll quote your crontab inline to better comment on it:

 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.580 installed on Fri Oct  7 14:09:56 2005)
 # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
 10 14 * * * /bin/date  /usr/tmp/date.out;

 First off, I'm not sure how cron will react to the semicolon at the end.
 Secondly, you need to redirect stderr as well as stdout, or deal with cron
 trying to mail you the output.

 Try

 10 14 * * * /bin/date  /usr/tmp/date.out 21

 and see if that works for you (it should).  If not, take a look at
 /var/log/cron.log and the Windows Event Log for any relevant messages from
 cron.
 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!

 If there's any real truth it's that the entire multidimensional infinity
 of the Universe is almost certainly being run by a bunch of maniacs. /DA
[1712] cron started
[1428] cron started
 UID PIDPPID TTY STIME COMMAND
micekill 296   1   0  08:27:49 /usr/bin/bash
micekill 576   1   ?  16:16:50 /usr/bin/cygrunsrv
micekill1428 576   ?  16:16:51 /usr/sbin/cron
micekill1828 296   0  16:31:42 /usr/bin/ps
The description for Event ID ( 0 ) in Source ( crontab ) cannot be
found. The local computer may not have the necessary registry information
or message DLL files to display messages from a remote computer. The
following information is part of the event: crontab : PID 1628 :
(micekiller) LIST (micekiller).

ls-cron.pid
Description: Binary data
--
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 problem

2005-10-07 Thread Igor Pechtchanski
Ugh, top-posting.  Reformatted...

On Fri, 7 Oct 2005, Orfeo Da Via wrote:

 Earlier I wrote:
  I'll quote your crontab inline to better comment on it:
 
  # DO NOT EDIT THIS FILE - edit the master and reinstall.
  # (/tmp/crontab.580 installed on Fri Oct  7 14:09:56 2005)
  # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
  10 14 * * * /bin/date  /usr/tmp/date.out;
 
  First off, I'm not sure how cron will react to the semicolon at the end.
  Secondly, you need to redirect stderr as well as stdout, or deal with cron
  trying to mail you the output.
 
  Try
 
  10 14 * * * /bin/date  /usr/tmp/date.out 21
 
  and see if that works for you (it should).  If not, take a look at
  /var/log/cron.log and the Windows Event Log for any relevant messages from
  cron.

 Hi Igor,
 thanks for your quicky reply!

 I tryed in this way

 $ crontab -l
  10 14 * * * /bin/date  /usr/tmp/date.out 21

 but doesn't work!!

What is your indication that it doesn't work?  Do you have anything in
/usr/tmp/date.out?  What are the permissions on that file?

 In attch. files is generated from:

 $ cat /var/log/cron.log  cron.log.txt

What are the permissions on /var/log/cron.log?

 $ ps -elf  ps-elf.txt

This shows that cygrunsrv is running as user micekiller.  It should be
running as SYSTEM.  What exact command did you use to install your cron
service?

 I've also changed the permission of my cron.pid

 $ chown a+x /var/run/cron.pid

Did you mean chmod a+rw?  The command below seems to indicate that...

 $ ls -l /var/run/cron.pid

 In event.log the Windows Event Log output.. IMHO is generated from

 $ crontab -l

 Thanks
   Orfeo

Your eventlog.txt shows only one event:

crontab : PID 1628 : (micekiller) LIST (micekiller).

This is indeed from crontab -l.  Are you sure there are no more
cron-generated events there?
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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

2005-10-07 Thread Orfeo Da Via

OK I start from the begin:


$ whoami
  micekiller
$ cd /etc/
$ mkpasswd.exe -l -g  passwd
$ cat passwd

  SYSTEM:*:18:544:,S-1-5-18::
  Administrators:*:544:544:,S-1-5-32-544::
  Backup Operators:*:551:551:,S-1-5-32-551::
  Guests:*:546:546:,S-1-5-32-546::
  Power Users:*:547:547:,S-1-5-32-547::
  Replicator:*:552:552:,S-1-5-32-552::
  Users:*:545:545:,S-1-5-32-545::
  Debugger Users:*:1002:1002:,S-1-5-21-1123561945-682003330-839522115-1002::

Administrator:unused_by_nt/2000/xp:500:513:U-SN2307128\Administrator,S-1-5-21-1123561945-682003330-839522115-500:/home/Administrator:/bin/bash
  ASPNET:unused_by_nt/2000/xp:1001:513:ASP.NET Machine
Account,U-SN2307128\ASPNET,S-1-5-21-1123561945-682003330-839522115-1001:/home/ASPNET:/bin/bash

Guest:unused_by_nt/2000/xp:501:513:U-SN2307128\Guest,S-1-5-21-1123561945-682003330-839522115-501:/home/Guest:/bin/bash

micekiller:unused_by_nt/2000/xp:1000:513:micekiller,U-SN2307128\micekiller,S-1-5-21-1123561945-682003330-839522115-1000:/home/micekiller:/bin/bash

now I change my uid to 18

$ cat passwd
..
micekiller:unused_by_nt/2000/xp:18:18:micekiller,U-SN2307128\micekiller,S-1-5-21-1123561945-682003330-839522115-1000:/home/micekiller:/bin/bash
...

restart cygwin, then

$ whoami
  SYSTEM

$ cygrunsrv.exe -I cron -p /usr/sbin/cron.exe -a -D -d damn cron -e 
CYGWIN=ntsec

$ cygrunsrv.exe -S cron
$ cygrunsrv.exe -Q cron
  Service : cron
  Display name: cygwin cron
  Current State   : Running
  Controls Accepted   : Stop
  Command : /usr/sbin/cron.exe -D

$ crontab -l
  # DO NOT EDIT THIS FILE - edit the master and reinstall.
  # (/tmp/crontab.1200 installed on Fri Oct  7 18:26:04 2005)
  # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
  * 18 * * * /bin/date  /usr/tmp/date.out 21

the /usr/tmp permission is

$ ls -l /usr/
  total 648
  drwxrwxrwx+  2 Administrators SYSTEM  0 Oct  7 14:22 tmp
  ...

finally the cron.pid permission is

$ ls -l /var/run/
  total 6
  -rwxrwxrwx  1 SYSTEM root 5 Oct  7 18:23 cron.pid
  -rwxrwxrwx  1 Administrators SYSTEM 616 Oct  7 18:20 utmp
  -rw-r--r--  1 SYSTEM SYSTEM  24 Oct  7 18:09 ~x

I wait wait wait, but the /usr/tmp directory is always empty ...

$ ls -l /usr/tmp/
  total 0


In my Application Log there are only message about LST, RELOAD, EDIT
etc...

I'm desperate :-)

Thanks
O.



On Fri, 7 Oct 2005, Igor Pechtchanski wrote:

 Ugh, top-posting.  Reformatted...

 On Fri, 7 Oct 2005, Orfeo Da Via wrote:

  Earlier I wrote:
   I'll quote your crontab inline to better comment on it:
  
   # DO NOT EDIT THIS FILE - edit the master and reinstall.
   # (/tmp/crontab.580 installed on Fri Oct  7 14:09:56 2005)
   # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
   10 14 * * * /bin/date  /usr/tmp/date.out;
  
   First off, I'm not sure how cron will react to the semicolon at the end.
   Secondly, you need to redirect stderr as well as stdout, or deal with cron
   trying to mail you the output.
  
   Try
  
   10 14 * * * /bin/date  /usr/tmp/date.out 21
  
   and see if that works for you (it should).  If not, take a look at
   /var/log/cron.log and the Windows Event Log for any relevant messages from
   cron.
 
  Hi Igor,
  thanks for your quicky reply!
 
  I tryed in this way
 
  $ crontab -l
   10 14 * * * /bin/date  /usr/tmp/date.out 21
 
  but doesn't work!!

 What is your indication that it doesn't work?  Do you have anything in
 /usr/tmp/date.out?  What are the permissions on that file?

  In attch. files is generated from:
 
  $ cat /var/log/cron.log  cron.log.txt

 What are the permissions on /var/log/cron.log?

  $ ps -elf  ps-elf.txt

 This shows that cygrunsrv is running as user micekiller.  It should be
 running as SYSTEM.  What exact command did you use to install your cron
 service?

  I've also changed the permission of my cron.pid
 
  $ chown a+x /var/run/cron.pid

 Did you mean chmod a+rw?  The command below seems to indicate that...

  $ ls -l /var/run/cron.pid
 
  In event.log the Windows Event Log output.. IMHO is generated from
 
  $ crontab -l
 
  Thanks
  Orfeo

 Your eventlog.txt shows only one event:

 crontab : PID 1628 : (micekiller) LIST (micekiller).

 This is indeed from crontab -l.  Are you sure there are no more
 cron-generated events there?
   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!

 If there's any real truth it's that the entire multidimensional infinity
 of the Universe is almost certainly being run by a bunch of maniacs. /DA


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

Re: Cron problem

2005-10-07 Thread René Berber
Orfeo Da Via wrote:
[snip]
 $ crontab -l
   # DO NOT EDIT THIS FILE - edit the master and reinstall.
   # (/tmp/crontab.1200 installed on Fri Oct  7 18:26:04 2005)
   # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
   * 18 * * * /bin/date  /usr/tmp/date.out 21

man 5 crontab :

   The time and date fields are:

  field  allowed values
  -  --
  minute 0-59
  hour   0-23
  day of month   0-31
  month  0-12 (or names, see below)
  day of week0-7 (0 or 7 is Sun, or use names)

[snip]
 
 I wait wait wait, but the /usr/tmp directory is always empty ...

Your crontab job will run every minute starting at 18:00.

Keep waiting ;-) read a book... read the manual.
-- 
R.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/



Re: Cron problem

2005-10-07 Thread Igor Pechtchanski
Ugh, top-posting.  Reformatted again...

On Fri, 7 Oct 2005, Orfeo Da Via wrote:

 On Fri, 7 Oct 2005, Igor Pechtchanski wrote:

  Ugh, top-posting.  Reformatted...
 
  On Fri, 7 Oct 2005, Orfeo Da Via wrote:
 
   Earlier I wrote:
I'll quote your crontab inline to better comment on it:
   
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.580 installed on Fri Oct  7 14:09:56 2005)
# (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp 
$)
10 14 * * * /bin/date  /usr/tmp/date.out;
   
First off, I'm not sure how cron will react to the semicolon at the end.
Secondly, you need to redirect stderr as well as stdout, or deal with 
cron
trying to mail you the output.
   
Try
   
10 14 * * * /bin/date  /usr/tmp/date.out 21
   
and see if that works for you (it should).  If not, take a look at
/var/log/cron.log and the Windows Event Log for any relevant messages 
from
cron.
  
   Hi Igor,
   thanks for your quicky reply!
  
   I tryed in this way
  
   $ crontab -l
10 14 * * * /bin/date  /usr/tmp/date.out 21
  
   but doesn't work!!
 
  What is your indication that it doesn't work?  Do you have anything in
  /usr/tmp/date.out?  What are the permissions on that file?
 
   In attch. files is generated from:
  
   $ cat /var/log/cron.log  cron.log.txt
 
  What are the permissions on /var/log/cron.log?
 
   $ ps -elf  ps-elf.txt
 
  This shows that cygrunsrv is running as user micekiller.  It should be
  running as SYSTEM.  What exact command did you use to install your cron
  service?
 
   I've also changed the permission of my cron.pid
  
   $ chown a+x /var/run/cron.pid
 
  Did you mean chmod a+rw?  The command below seems to indicate that...
 
   $ ls -l /var/run/cron.pid
  
   In event.log the Windows Event Log output.. IMHO is generated from
  
   $ crontab -l
  
   Thanks
 Orfeo
 
  Your eventlog.txt shows only one event:
 
  crontab : PID 1628 : (micekiller) LIST (micekiller).
 
  This is indeed from crontab -l.  Are you sure there are no more
  cron-generated events there?
  Igor

 OK I start from the begin:

 $ whoami
   micekiller
 $ cd /etc/
 $ mkpasswd.exe -l -g  passwd
 $ cat passwd

   SYSTEM:*:18:544:,S-1-5-18::
   Administrators:*:544:544:,S-1-5-32-544::
   Backup Operators:*:551:551:,S-1-5-32-551::
   Guests:*:546:546:,S-1-5-32-546::
   Power Users:*:547:547:,S-1-5-32-547::
   Replicator:*:552:552:,S-1-5-32-552::
   Users:*:545:545:,S-1-5-32-545::
   Debugger Users:*:1002:1002:,S-1-5-21-1123561945-682003330-839522115-1002::
   
 Administrator:unused_by_nt/2000/xp:500:513:U-SN2307128\Administrator,S-1-5-21-1123561945-682003330-839522115-500:/home/Administrator:/bin/bash
   ASPNET:unused_by_nt/2000/xp:1001:513:ASP.NET Machine 
 Account,U-SN2307128\ASPNET,S-1-5-21-1123561945-682003330-839522115-1001:/home/ASPNET:/bin/bash
   
 Guest:unused_by_nt/2000/xp:501:513:U-SN2307128\Guest,S-1-5-21-1123561945-682003330-839522115-501:/home/Guest:/bin/bash
   
 micekiller:unused_by_nt/2000/xp:1000:513:micekiller,U-SN2307128\micekiller,S-1-5-21-1123561945-682003330-839522115-1000:/home/micekiller:/bin/bash

Ok so far, as long as you have no domain users...

 now I change my uid to 18

Ouch, not a good idea.

 $ cat passwd
 ..
 micekiller:unused_by_nt/2000/xp:18:18:micekiller,U-SN2307128\micekiller,S-1-5-21-1123561945-682003330-839522115-1000:/home/micekiller:/bin/bash
 ...

 restart cygwin, then

 $ whoami
   SYSTEM

Nope.  You aren't really SYSTEM, your SID (that string starting with S-)
is still that for U-SN2307128\micekiller.  Cygwin thinks your name is
SYSTEM, but it isn't.

Besides, you don't need to do that.  cygrunsrv will install services as
SYSTEM by default, regardless of the current user.

 $ cygrunsrv.exe -I cron -p /usr/sbin/cron.exe -a -D -d damn cron -e 
 CYGWIN=ntsec

 $ cygrunsrv.exe -S cron
 $ cygrunsrv.exe -Q cron
   Service : cron
   Display name: cygwin cron
   Current State   : Running
   Controls Accepted   : Stop
   Command : /usr/sbin/cron.exe -D

 $ crontab -l
   # DO NOT EDIT THIS FILE - edit the master and reinstall.
   # (/tmp/crontab.1200 installed on Fri Oct  7 18:26:04 2005)
   # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
   * 18 * * * /bin/date  /usr/tmp/date.out 21

 the /usr/tmp permission is

 $ ls -l /usr/
   total 648
   drwxrwxrwx+  2 Administrators SYSTEM  0 Oct  7 14:22 tmp
   ...

 finally the cron.pid permission is

 $ ls -l /var/run/
   total 6
   -rwxrwxrwx  1 SYSTEM root 5 Oct  7 18:23 cron.pid
   -rwxrwxrwx  1 Administrators SYSTEM 616 Oct  7 18:20 utmp
   -rw-r--r--  1 SYSTEM SYSTEM  24 Oct  7 18:09 ~x

 I wait wait wait, but the /usr/tmp directory is always empty ...

 $ ls -l /usr/tmp/
   total 0

 In my Application Log there are only message about LST, RELOAD, EDIT
 etc...

 I'm desperate :-)

Try doing this without changing your UID to 18.  In fact, is there a

Re: Cron problem on Windows 2003

2005-01-30 Thread Igor Pechtchanski
On Fri, 28 Jan 2005, Pierre A. Humblet wrote:

 Igor Pechtchanski wrote:

  I don't know, I kind of prefer the way it's phrased in the openssh.README
  (i.e., a special note about the user privileges in Win2003, rather than a
  common description).  That README also has a nice step-by-step description
  of what sshd-host-config does, so that the users have the option to do the
  installation steps manually (or verify that the needed things were
  created).  But hey, I don't use cron extensively, and I certainly can't
  speak for new users...

 Thanks for the feedback, Igor.
 The need for the special user is generic to all services
 (sshd, crond, exim...). Instead of repeating the same
 info in all the readmes, I will refer to
 http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch
 although that section should be corrected and expanded.

Sounds like a good idea, Pierre.
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/



Cron problem on Windows 2003

2005-01-28 Thread Ballarin Federico, PD
We have cygwin ver. 1.5.12
We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p
/usr/sbin/cron -a -D string. We started service with cygrunsrv -S
cron. Service start all successfully.
Our scripts don't start.
 
When we try to install the cron service by user Administrator from bash,
the administrato's scripts start.
 
Any idea.
 
Regards
Federico Ballarin

--
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 problem on Windows 2003

2005-01-28 Thread Igor Pechtchanski
On Fri, 28 Jan 2005, Ballarin Federico, PD wrote:

 We have cygwin ver. 1.5.12
 We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p
 /usr/sbin/cron -a -D string. We started service with cygrunsrv -S
 cron. Service start all successfully.
 Our scripts don't start.

 When we try to install the cron service by user Administrator from bash,
 the administrato's scripts start.

Not the most obvious place to look for this, but read
/usr/share/doc/Cygwin/openssh.README, where it says Important note for
Windows 2003 Server users.
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 problem on Windows 2003

2005-01-28 Thread Pierre A. Humblet
On Fri, Jan 28, 2005 at 02:11:47PM -0500, Igor Pechtchanski wrote:
 On Fri, 28 Jan 2005, Ballarin Federico, PD wrote:
 
  We have cygwin ver. 1.5.12
  We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p
  /usr/sbin/cron -a -D string. We started service with cygrunsrv -S
  cron. Service start all successfully.
  Our scripts don't start.
 
  When we try to install the cron service by user Administrator from bash,
  the administrato's scripts start.
 
 Not the most obvious place to look for this, but read
 /usr/share/doc/Cygwin/openssh.README, where it says Important note for
 Windows 2003 Server users.

There is also
http://cygwin.com/ml/cygwin-announce/2005-01/msg4.html
announcing the availability of /usr/bin/cron-config

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 problem on Windows 2003

2005-01-28 Thread Igor Pechtchanski
On Fri, 28 Jan 2005, Pierre A. Humblet wrote:

 On Fri, Jan 28, 2005 at 02:11:47PM -0500, Igor Pechtchanski wrote:
  On Fri, 28 Jan 2005, Ballarin Federico, PD wrote:
 
   We have cygwin ver. 1.5.12
   We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p
   /usr/sbin/cron -a -D string. We started service with cygrunsrv -S
   cron. Service start all successfully.
   Our scripts don't start.
  
   When we try to install the cron service by user Administrator from bash,
   the administrato's scripts start.
 
  Not the most obvious place to look for this, but read
  /usr/share/doc/Cygwin/openssh.README, where it says Important note for
  Windows 2003 Server users.

 There is also
 http://cygwin.com/ml/cygwin-announce/2005-01/msg4.html
 announcing the availability of /usr/bin/cron-config

Right.  I'm wondering whether the above section from the openssh.README
should be copied to /usr/share/doc/Cygwin/cron.README?  The cron.README
could also use some more info about what the cron-config script, similar
to that in the openssh.README.
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 problem on Windows 2003

2005-01-28 Thread Pierre A. Humblet


Igor Pechtchanski wrote:

 
 Right.  I'm wondering whether the above section from the openssh.README
 should be copied to /usr/share/doc/Cygwin/cron.README?  The cron.README
 could also use some more info about what the cron-config script, similar
 to that in the openssh.README.

Right. Comments about the following blurb?

Pierre

This is the Cygwin port of Paul Vixie's cron-3.01. 
The script /usr/bin/cron-config can be used to install
cron as a service on all Windows platforms supported by Cygwin.

Note that on NT systems, cron relies on the Cygwin feature to be able
to switch the user context without password. On NT/W2K, it can
run under SYSTEM account, while on Win2003 it must run under an
account with special privileges.
In both those cases, the child processes may not have access to
net shares. An alternative is to run the service under your own
account. This gives access to net shares but does not allow to
run the crontab of other users.

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/sbin/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).

--
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 problem on Windows 2003

2005-01-28 Thread Igor Pechtchanski
On Fri, 28 Jan 2005, Pierre A. Humblet wrote:

 Igor Pechtchanski wrote:

  Right.  I'm wondering whether the above section from the openssh.README
  should be copied to /usr/share/doc/Cygwin/cron.README?  The cron.README
  could also use some more info about what the cron-config script, similar
  to that in the openssh.README.

 Right. Comments about the following blurb?

 Pierre

 This is the Cygwin port of Paul Vixie's cron-3.01.
 The script /usr/bin/cron-config can be used to install
 cron as a service on all Windows platforms supported by Cygwin.

 Note that on NT systems, cron relies on the Cygwin feature to be able
 to switch the user context without password. On NT/W2K, it can
 run under SYSTEM account, while on Win2003 it must run under an
 account with special privileges.
 In both those cases, the child processes may not have access to
 net shares. An alternative is to run the service under your own
 account. This gives access to net shares but does not allow to
 run the crontab of other users.

 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/sbin/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).

I don't know, I kind of prefer the way it's phrased in the openssh.README
(i.e., a special note about the user privileges in Win2003, rather than a
common description).  That README also has a nice step-by-step description
of what sshd-host-config does, so that the users have the option to do the
installation steps manually (or verify that the needed things were
created).  But hey, I don't use cron extensively, and I certainly can't
speak for new users...
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 problem on Windows 2003

2005-01-28 Thread Pierre A. Humblet


Igor Pechtchanski wrote:
 
 
 I don't know, I kind of prefer the way it's phrased in the openssh.README
 (i.e., a special note about the user privileges in Win2003, rather than a
 common description).  That README also has a nice step-by-step description
 of what sshd-host-config does, so that the users have the option to do the
 installation steps manually (or verify that the needed things were
 created).  But hey, I don't use cron extensively, and I certainly can't
 speak for new users...

Thanks for the feedback, Igor.
The need for the special user is generic to all services
(sshd, crond, exim...). Instead of repeating the same
info in all the readmes, I will refer to
http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch
although that section should be corrected and expanded.

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 problem/Documentation and Setup

2004-08-19 Thread Andrew DeFaria
Larry Hall wrote:
This doesn't explain why it worked at my last company and why I could 
have sworn it used to work here up until about a week ago.
Well, if you can check the access permissions on the share in 
question, you should be able to determine whether this is an issue or not.
At this company I don't think they'll let me. But assuming I could, what 
exactly would I look for? IOW what would indicate a public mount and 
what would indicate a non-public mount?
--
Daddy, why doesn't this magnet pick up this floppy disk?

--
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 problem/Documentation and Setup

2004-08-19 Thread Larry Hall
At 02:25 AM 8/19/2004, you wrote:
Larry Hall wrote:

This doesn't explain why it worked at my last company and why I could have sworn it 
used to work here up until about a week ago.

Well, if you can check the access permissions on the share in question, you should 
be able to determine whether this is an issue or not.

At this company I don't think they'll let me. But assuming I could, what exactly 
would I look for? IOW what would indicate a public mount and what would indicate a 
non-public mount?


See if Everybody or Guest have permissions.  Generally speaking, you're
looking for ids with access which don't require authentication.  For 
pre-defined groups, this comes down to the two I mentioned.  Theoretically, 
others could be created that fit this definition but limit access to just 
those within a defined group.  I haven't tested the notion.  It's just an 
idea that seems workable.


--
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 problem/Documentation and Setup

2004-08-18 Thread Andrew DeFaria
Larry Hall wrote:
At 09:39 PM 8/17/2004, you wrote:
I'm having a problem with cron in this new environment. I cannot 
execute any of my own scripts in my ~/bin. I was also having problems 
executing even things in /tmp! So like a good little boy I decided to 
read the readme for cron again before asking here. Trouble is I have 
no cron readme!

I remember it was in /usr/doc/Cygwin but alas:
Cygwin docs should now be in /usr/share/doc/Cygwin. All packages are 
moving that direction.
Ah yes. I knew there was another place to look but all I could remember 
was /usr/doc. I'll have a look see when I get into work.

$ ls /usr/doc/cygwin
ctags-5.5.README* openssl-0.9.7d.README* whois-4.6.14-1.README*
ghostscript-7.05.README* procps-010801.README*
mc-4.6.0.README* rxvt-2.7.10.README*
So I figured Oops, guess I didn't install all the documentation and 
fired up setup.exe to download from the internet. I use 
ftp://planetmirror.com and when I attempt to do that I get:

(null) line 1537: parse error, unexpected COMMA, expecting STRING
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
Problem is I *do* have the latest version of setup! I just downloaded 
it again to make sure. Same error. Tried mirrors.kernel.org - same error!
I assume you've seen 
http://cygwin.com/ml/cygwin/2004-08/msg00587.html by now. If not, 
read through it. The problem is fixed.
Yes, saw it right after I posted this. Tried a quick download from 
planetmirror.com again and received the same error. I assumed the fixes 
was purqulating(sp?) and decided to try again today. Again, once I get 
into work...

As for my cron problem I can execute rudimentary commands such as ls, 
pwd and redirect the output to /tmp/debug.log. From that I can see 
that pwd tells me that I'm in /var/cron. The script I want to execute 
is under ~/bin (which is on a network share). I copied that script to 
/tmp and insured that it was set 777. Then I performed the following 
cron jobs:

18 17 * * * pwd  /tmp/debug.log 21
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
21 17 * * * /tmp/myscript  /tmp/debug.log 21
Here's the result:
/var/cron
tabs
-rwxrwxrwx 1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript
/tmp/myscript never get's executed.
Sorry, can't really help here. There's just not enough information about
what your script does or what your environment for me to hazard a guess.
If you post more details or, better yet, a small test case, I can try it.
The simple test I did which just echos Hello World from a bash script
worked fine for me.
Well initially it was a Perl script that I'm trying to run through cron. 
But I then stripped it down to just:

#!/bin/bash
echo testme  /tmp/debug.log 21
Nothing additional got written into /tmp/debug.log.
--
Diplomacy - the art of letting someone have your way.
--
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 problem/Documentation and Setup

2004-08-18 Thread Igor Pechtchanski
On Wed, 18 Aug 2004, Andrew DeFaria wrote:

 Larry Hall wrote:
 
  At 09:39 PM 8/17/2004, you wrote:
  
   I'm having a problem with cron in this new environment. I cannot execute
   any of my own scripts in my ~/bin. I was also having problems executing
   even things in /tmp!
   
   [snip]
   
   As for my cron problem I can execute rudimentary commands such as ls, pwd
   and redirect the output to /tmp/debug.log. From that I can see that pwd
   tells me that I'm in /var/cron. The script I want to execute is under
   ~/bin (which is on a network share). I copied that script to /tmp and
   insured that it was set 777. Then I performed the following cron jobs:
   
   18 17 * * * pwd  /tmp/debug.log 21
   19 17 * * * ls  /tmp/debug.log 21
   20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
   21 17 * * * /tmp/myscript  /tmp/debug.log 21
   
   Here's the result:
   
   /var/cron
   tabs
   -rwxrwxrwx 1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript
   
   /tmp/myscript never get's executed.
  
  Sorry, can't really help here. There's just not enough information about
  what your script does or what your environment for me to hazard a guess.
  If you post more details or, better yet, a small test case, I can try it.
  The simple test I did which just echos Hello World from a bash script
  worked fine for me.
 
 Well initially it was a Perl script that I'm trying to run through cron. 
 But I then stripped it down to just:
 
 #!/bin/bash
 echo testme  /tmp/debug.log 21
 
 Nothing additional got written into /tmp/debug.log.

You have, of course, reviewed

 Problem reports:   http://cygwin.com/problems.html

and thought of attaching the output of cygcheck -svr, right?  Also, did 
you try cron_diagnose.sh (Google for it)?

I suspect some or all of your mounts may not be visible to cron...  Do 
your cron jobs above (i.e., 

19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21

) still work correctly after changing ls to /bin/ls?  Does changing 
/tmp/myscript to sh -c '/tmp/myscript' help any?
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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 problem/Documentation and Setup

2004-08-18 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Igor Pechtchanski
 Sent: 18 August 2004 16:54

18 17 * * * pwd  /tmp/debug.log 21
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
21 17 * * * /tmp/myscript  /tmp/debug.log 21

 19 17 * * * ls  /tmp/debug.log 21
 20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21


  I haven't been following, so PMFBI, but can I just point out that it may
well be necessary that the 21 should precede the  /tmp/debug.log if you
want stderr to actually end up in the log file


  BTW, uname -a; pwd; set; export might be a good diagnostic command to
add as a cron job isn't this almost certainly a
wrong-user-executing-the-job problem?


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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 problem/Documentation and Setup

2004-08-18 Thread Igor Pechtchanski
On Wed, 18 Aug 2004, Dave Korn wrote:

  -Original Message-
  From: cygwin-owner On Behalf Of Igor Pechtchanski
  Sent: 18 August 2004 16:54
 
 18 17 * * * pwd  /tmp/debug.log 21
 19 17 * * * ls  /tmp/debug.log 21
 20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
 21 17 * * * /tmp/myscript  /tmp/debug.log 21
 
  19 17 * * * ls  /tmp/debug.log 21
  20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
 
   I haven't been following, so PMFBI, but can I just point out that it may
 well be necessary that the 21 should precede the  /tmp/debug.log if you
 want stderr to actually end up in the log file

Nope, that part was correct.  If you put 21 before the  redirection, 
stderr will end up on stdout.  See the sh and bash manpages.

   BTW, uname -a; pwd; set; export might be a good diagnostic command to
 add as a cron job isn't this almost certainly a
 wrong-user-executing-the-job problem?

Huh?  uname -a should only be useful if there's more than one Cygwin 
version on the machine -- otherwise, the output should be identical for 
all users.  pwd is already there.  I don't see how set;export; is 
relevant at all, frankly...  Did you, by chance, mean id instead?
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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 problem/Documentation and Setup

2004-08-18 Thread Dave Korn
 -Original Message-
 From: Igor Pechtchanski
 Sent: 18 August 2004 17:19

 On Wed, 18 Aug 2004, Dave Korn wrote:
 
   -Original Message-
   From: cygwin-owner On Behalf Of Igor Pechtchanski
   Sent: 18 August 2004 16:54
  
  18 17 * * * pwd  /tmp/debug.log 21
  19 17 * * * ls  /tmp/debug.log 21
  20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
  21 17 * * * /tmp/myscript  /tmp/debug.log 21
  
   19 17 * * * ls  /tmp/debug.log 21
   20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
  
I haven't been following, so PMFBI, but can I just point 
 out that it may
  well be necessary that the 21 should precede the  
 /tmp/debug.log if you
  want stderr to actually end up in the log file
 
 Nope, that part was correct.  If you put 21 before the  
 redirection, 
 stderr will end up on stdout.  See the sh and bash manpages.

  My bad.  GOK how I managed to misremember that, but I was sooo certain
that I'd had to painfully discover that they needed to be the other way
round myself once.  Guess I must have discovered it the way round you've got
it, after all.  I just tested redirection under cmd.exe and even that
behaves the same way, so I didn't even get it from M$-world.  Pardon my
confabulation.

BTW, uname -a; pwd; set; export might be a good 
 diagnostic command to
  add as a cron job isn't this almost certainly a
  wrong-user-executing-the-job problem?
 
 Huh?  uname -a should only be useful if there's more than 
 one Cygwin 
 version on the machine -- otherwise, the output should be 
 identical for 
 all users.  pwd is already there.  I don't see how set;export; is 
 relevant at all, frankly...  Did you, by chance, mean id instead?

  I meant id rather than uname, yes.  As for set; export, I don't see
how you can consider the execution environment to _not_ be relevant; it's
full of useful and even vital diagnostic information, such as $PATH, to name
but one

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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 problem/Documentation and Setup

2004-08-18 Thread Igor Pechtchanski
On Wed, 18 Aug 2004, Dave Korn wrote:

  -Original Message-
  From: Igor Pechtchanski
  Sent: 18 August 2004 17:19
 
  On Wed, 18 Aug 2004, Dave Korn wrote:
  
-Original Message-
From: cygwin-owner On Behalf Of Igor Pechtchanski
Sent: 18 August 2004 16:54
   
   18 17 * * * pwd  /tmp/debug.log 21
   19 17 * * * ls  /tmp/debug.log 21
   20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
   21 17 * * * /tmp/myscript  /tmp/debug.log 21
   
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
   
 I haven't been following, so PMFBI, but can I just point out that 
   it may well be necessary that the 21 should precede the  
   /tmp/debug.log if you want stderr to actually end up in the log 
   file
  
  Nope, that part was correct.  If you put 21 before the  
  redirection, stderr will end up on stdout.  See the sh and bash 
  manpages.
 
   My bad.  GOK how I managed to misremember that, but I was sooo certain 
 that I'd had to painfully discover that they needed to be the other way 
 round myself once.  Guess I must have discovered it the way round you've 
 got it, after all.  I just tested redirection under cmd.exe and even 
 that behaves the same way, so I didn't even get it from M$-world.  
 Pardon my confabulation.
 
 BTW, uname -a; pwd; set; export might be a good diagnostic 
   command to add as a cron job isn't this almost certainly a 
   wrong-user-executing-the-job problem?
  
  Huh?  uname -a should only be useful if there's more than one Cygwin 
  version on the machine -- otherwise, the output should be identical 
  for all users.  pwd is already there.  I don't see how set;export; 
  is relevant at all, frankly...  Did you, by chance, mean id instead?
 
   I meant id rather than uname, yes.  As for set; export, I don't 
 see how you can consider the execution environment to _not_ be relevant; 
 it's full of useful and even vital diagnostic information, such as 
 $PATH, to name but one

Ah, my turn to play dumb.  I didn't realize that set;export will 
actually print out the environment and the exported names.  Moreover, I 
didn't realize it'll do so under /bin/sh as well.  Oh, well, ignore that 
last comment about set;export, please...
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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 problem/Documentation and Setup

2004-08-18 Thread Andrew DeFaria
Igor Pechtchanski wrote:
On Wed, 18 Aug 2004, Andrew DeFaria wrote:
Larry Hall wrote:
At 09:39 PM 8/17/2004, you wrote:
I'm having a problem with cron in this new environment. I cannot 
execute
any of my own scripts in my ~/bin. I was also having problems executing
even things in /tmp!

[snip]
As for my cron problem I can execute rudimentary commands such as 
ls, pwd
and redirect the output to /tmp/debug.log. From that I can see that pwd
tells me that I'm in /var/cron. The script I want to execute is under
~/bin (which is on a network share). I copied that script to /tmp and
insured that it was set 777. Then I performed the following cron jobs:

18 17 * * * pwd  /tmp/debug.log 21
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
21 17 * * * /tmp/myscript  /tmp/debug.log 21
Here's the result:
/var/cron
tabs
-rwxrwxrwx 1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript
/tmp/myscript never get's executed.
Sorry, can't really help here. There's just not enough information about
what your script does or what your environment for me to hazard a guess.
If you post more details or, better yet, a small test case, I can 
try it.
The simple test I did which just echos Hello World from a bash script
worked fine for me.
Well initially it was a Perl script that I'm trying to run through cron.
But I then stripped it down to just:
#!/bin/bash
echo testme  /tmp/debug.log 21
Nothing additional got written into /tmp/debug.log.
You have, of course, reviewed
Yes I have but there was nothing there. Changed myscript to echo to 
/tmp/myscript.log so as not to have any problems with other things 
writing to /tmp/debug.log. No /tmp/myscript.log file was created.

Problem reports: http://cygwin.com/problems.html
and thought of attaching the output of cygcheck -svr, right?
Yeah I thought about it! :-)
OK I've attached it
Also, did  you try cron_diagnose.sh (Google for it)?
I suspect some or all of your mounts may not be visible to cron... 
cron_diagnose.sh did point out that my /etc/passwd and /etc/group lacked 
read permission! Well it didn't actually lack read permission rather it 
was a symlink to network share. Actually it was a mount to a network 
share. So apparently I can't link passwd and group (I know, I know you 
hardliners will say You shouldn't symlink such things to network 
locations! What happens if the network is down and you try to login? - 
well I'm already logged into Windows so there is no real login happening 
under Cygwin. Yes there is a risk if the network is down then I will not 
have passwd, group, etc. Then again, whenever the network is down I'm 
either not working or working on the network problem anyway, but I 
digress..). Switched this to local copies. Now some things are working 
better.

Do
your cron jobs above (i.e.,
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
) still work correctly after changing ls to /bin/ls? Does 
changing  /tmp/myscript to sh -c '/tmp/myscript' help any?
With local /etc/passwd and /etc/group I'm able to execute /tmp/myscript. 
However I wish to execute ~/bin/somescript. I can't seem to get to $HOME!

Now 'round here they map the P drive to the home share via 
//server/username$ - yeah that dollar sign thingy in Windows.

I had done a mount -bsf //server/$USERNAME\$ /home a long time ago. 
However trying to ls /home/bin doesn't work in cron. Neither does ls P: 
nor even ls //server/$USERNAME\$!

This can be seen by the following output:
Executing myscript
TPAD3741
\\rtnlprod02\viewstore\webtest\CM_DOCS\Web on /wwwtest type system (binmode)
\\rtnlprod02\viewstore\webview\CM_DOCS\Web on /www type system (binmode)
\\rtnlprod02\viewstore\PMO\CM_TOOLS on /pmo type system (binmode)
\\isdata01\TPAD3741$ on /home2 type system (binmode)
C:\Program Files on /apps type system (binmode)
C:\Cygwin\bin on /usr/bin type system (binmode)
C:\Cygwin\lib on /usr/lib type system (binmode)
C:\Cygwin on / type system (binmode)
M: on /view type system (binmode)
P: on /home type system (binmode)
b: on /dev/b type system (binmode,noumount)
c: on /dev/c type system (binmode,noumount)
New connections will be remembered.^M
Status   Local RemoteNetwork^M
---
M:\\viewClearCase Dynamic Views
  \\view\defariaClearCase Dynamic Views
The command completed successfully.^M
ls: p:: No such file or directory
ls: //isdata01/TPAD3741$: No such file or directory
End of myscript
For some reason the P drive is not available to cron at all (Note at a 
previous company I was able to get to my home share merely by using the 
mount -bsf //server/share to /home and refering to /home/$USERNAME 
for the $HOME variable. Here they do not export a share under which 
all users reside, rather they map, probably from ntlogin.bat, the 
specific, hidden $USERNAME share directly

Re: Cron problem/Documentation and Setup

2004-08-18 Thread Larry Hall
At 10:44 PM 8/18/2004, you wrote:
So is P or /home off limits when it comes to cron? Why did this work at my  last 
company? I think it's probably due to the public share point versus non-public 
share point (which I never totally understood before) and I'm fearing that I will not 
be able to convince the powers that be to change it! :-(


Bingo!

You can always resort to running cron as you instead of 'SYSTEM'.  As 
long as you're the only user that needs to run under 'cron', that should
work without changing the permissions of your network shares.



--
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 problem/Documentation and Setup

2004-08-18 Thread Andrew DeFaria
Larry Hall wrote:
At 10:44 PM 8/18/2004, you wrote:
So is P or /home off limits when it comes to cron? Why did this work 
at my last company? I think it's probably due to the public share 
point versus non-public share point (which I never totally 
understood before) and I'm fearing that I will not be able to 
convince the powers that be to change it! :-(
Bingo!
You can always resort to running cron as you instead of 'SYSTEM'. As 
long as you're the only user that needs to run under 'cron', that 
should work without changing the permissions of your network shares.
I'd hate to have to resort to that!
This doesn't explain why it worked at my last company and why I could 
have sworn it used to work here up until about a week ago.
--
Do illiterate people get the full effect of alphabet soup?

--
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 problem/Documentation and Setup

2004-08-18 Thread Larry Hall
At 11:13 PM 8/18/2004, you wrote:
Larry Hall wrote:

At 10:44 PM 8/18/2004, you wrote:

So is P or /home off limits when it comes to cron? Why did this work at my last 
company? I think it's probably due to the public share point versus non-public 
share point (which I never totally understood before) and I'm fearing that I will 
not be able to convince the powers that be to change it! :-(

Bingo!

You can always resort to running cron as you instead of 'SYSTEM'. As long as you're 
the only user that needs to run under 'cron', that should work without changing the 
permissions of your network shares.

I'd hate to have to resort to that!

This doesn't explain why it worked at my last company and why I could have sworn it 
used to work here up until about a week ago.



Well, if you can check the access permissions on the share in question, 
you should be able to determine whether this is an issue or not.



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



Cron problem/Documentation and Setup

2004-08-17 Thread Andrew DeFaria
I'm having a problem with cron in this new environment. I cannot execute 
any of my own scripts in my ~/bin. I was also having problems executing 
even things in /tmp! So like a good little boy I decided to read the 
readme for cron again before asking here. Trouble is I have no cron readme!

I remember it was in /usr/doc/Cygwin but alas:
$ ls /usr/doc/cygwin
ctags-5.5.README* openssl-0.9.7d.README*  whois-4.6.14-1.README*
ghostscript-7.05.README*  procps-010801.README*
mc-4.6.0.README*  rxvt-2.7.10.README*
So I figured Oops, guess I didn't install all the documentation and 
fired up setup.exe to download  from the internet. I use 
ftp://planetmirror.com and when I attempt to do that I get:

(null) line 1537: parse error, unexpected COMMA, expecting STRING
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
Problem is I *do* have the latest version of setup! I just downloaded it 
again to make sure. Same error. Tried mirrors.kernel.org - same error!

As for my cron problem I can execute rudimentary commands such as ls, 
pwd and redirect the output to /tmp/debug.log. From that I can see that 
pwd tells me that I'm in /var/cron. The script I want to execute is 
under ~/bin (which is on a network share). I copied that script to /tmp 
and insured that it was set 777. Then I performed the following cron jobs:

18 17 * * * pwd  /tmp/debug.log 21
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
21 17 * * * /tmp/myscript  /tmp/debug.log 21
Here's the result:
/var/cron
tabs
-rwxrwxrwx1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript
/tmp/myscript never get's executed.
--
Okay, who put a stop payment on my reality check?
--
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 problem/Documentation and Setup

2004-08-17 Thread Larry Hall
At 09:39 PM 8/17/2004, you wrote:
I'm having a problem with cron in this new environment. I cannot execute any of my 
own scripts in my ~/bin. I was also having problems executing even things in /tmp! So 
like a good little boy I decided to read the readme for cron again before asking 
here. Trouble is I have no cron readme!

I remember it was in /usr/doc/Cygwin but alas:


Cygwin docs should now be in /usr/share/doc/Cygwin.  All packages are 
moving that direction.


$ ls /usr/doc/cygwin
ctags-5.5.README* openssl-0.9.7d.README*  whois-4.6.14-1.README*
ghostscript-7.05.README*  procps-010801.README*
mc-4.6.0.README*  rxvt-2.7.10.README*

So I figured Oops, guess I didn't install all the documentation and fired up 
setup.exe to download  from the internet. I use ftp://planetmirror.com and when I 
attempt to do that I get:

(null) line 1537: parse error, unexpected COMMA, expecting STRING
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)

Problem is I *do* have the latest version of setup! I just downloaded it again to 
make sure. Same error. Tried mirrors.kernel.org - same error!


I assume you've seen http://cygwin.com/ml/cygwin/2004-08/msg00587.html
by now.  If not, read through it.  The problem is fixed.


As for my cron problem I can execute rudimentary commands such as ls, pwd and 
redirect the output to /tmp/debug.log. From that I can see that pwd tells me that I'm 
in /var/cron. The script I want to execute is under ~/bin (which is on a network 
share). I copied that script to /tmp and insured that it was set 777. Then I 
performed the following cron jobs:

18 17 * * * pwd  /tmp/debug.log 21
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
21 17 * * * /tmp/myscript  /tmp/debug.log 21

Here's the result:

/var/cron
tabs
-rwxrwxrwx1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript

/tmp/myscript never get's executed.


Sorry, can't really help here.  There's just not enough information about
what your script does or what your environment for me to hazard a guess.
If you post more details or, better yet, a small test case, I can try it.
The simple test I did which just echos Hello World from a bash script 
worked fine for me.


--
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 problem/Documentation and Setup

2004-08-17 Thread Larry Hall
At 10:38 PM 8/17/2004, you wrote
At 09:39 PM 8/17/2004, you wrote:
I'm having a problem with cron in this new environment. I cannot execute any of my 
own scripts in my ~/bin. I was also having problems executing even things in /tmp! 
So like a good little boy I decided to read the readme for cron again before asking 
here. Trouble is I have no cron readme!

I remember it was in /usr/doc/Cygwin but alas:


Cygwin docs should now be in /usr/share/doc/Cygwin.  All packages are 
moving that direction.


$ ls /usr/doc/cygwin
ctags-5.5.README* openssl-0.9.7d.README*  whois-4.6.14-1.README*
ghostscript-7.05.README*  procps-010801.README*
mc-4.6.0.README*  rxvt-2.7.10.README*

So I figured Oops, guess I didn't install all the documentation and fired up 
setup.exe to download  from the internet. I use ftp://planetmirror.com and when I 
attempt to do that I get:

(null) line 1537: parse error, unexpected COMMA, expecting STRING
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)
(null) line 1537: unrecognized line 1537 (do you have the latest setup?)

Problem is I *do* have the latest version of setup! I just downloaded it again to 
make sure. Same error. Tried mirrors.kernel.org - same error!


I assume you've seen http://cygwin.com/ml/cygwin/2004-08/msg00587.html
by now.  If not, read through it.  The problem is fixed.


As for my cron problem I can execute rudimentary commands such as ls, pwd and 
redirect the output to /tmp/debug.log. From that I can see that pwd tells me that 
I'm in /var/cron. The script I want to execute is under ~/bin (which is on a network 
share). I copied that script to /tmp and insured that it was set 777. Then I 
performed the following cron jobs:

18 17 * * * pwd  /tmp/debug.log 21
19 17 * * * ls  /tmp/debug.log 21
20 17 * * * ls -l /tmp/myscript  /tmp/debug.log 21
21 17 * * * /tmp/myscript  /tmp/debug.log 21

Here's the result:

/var/cron
tabs
-rwxrwxrwx1 TPAD3741 Domain U 5201 Aug 17 17:15 /tmp/myscript

/tmp/myscript never get's executed.


Sorry, can't really help here.  There's just not enough information about
what your script does or what your environment for me to hazard a guess.

   ^^^
   is

If you post more details or, better yet, a small test case, I can try it.
The simple test I did which just echos Hello World from a bash script 
worked fine for me.

--
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 problem with authentication

2004-05-27 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Mike Kenny - BCX - Mngd Services
 Sent: 27 May 2004 10:07

 I have a situation where, on the windows side, cron is running as user
 'mqdisp'.

 The PS shows that cron is running as SYSTEM, 

 I hope the above better explains my problem.

  Not exactly!

 On the cywin side, mqdisp is the user that
 is trying to run the cron job that attaches to MQ Series.

  AYS?  I take it you say this because you were logged in as that user when
you ran crontab?

 BTW, is there some way that I can login as 'system'? This 
 might provide a way around this problem.

  Also not exactly!

  Heh.  Let me be clearer.  It seems to me that you want cron to run as user
mqdisp rather than user SYSTEM.  SYSTEM is a local account; it has utmost
(rooter-than-root) priviliges on your local machine but it's not a member of
the domain and has no access rights there.

  [754] MQSeries
Type: WARNING
Computer: TEST1
Time: 2004/05/27 10:50:14   ID:   8074
 Authorization failed as the SID 
 'S-1-5-21-776561741-1935655697-1343024091-1007'
 does not match the entity 'system'.
   The Object Authority Manager received inconsistent data - 
 the supplied SID doe
 s not match that of the supplied entity information.
   Ensure that the application is supplying valid entity and 
 SID information.

  Yep, that's mqdisp's sid, not SYSTEM's.

 SYSTEM:*:18:544:,S-1-5-18::
 mqdisp:unused_by_nt/2000/xp:1007:513:mqdisp,U-TEST1\mqdisp,S-1
-5-21-776561741-19
 35655697-1343024091-1007:/home/mqdisp:/bin/bash

  I think the real question is, did you use the --user and --passwd options
to cygrunsrv when you installed crond?  This tells cygrunsrv to use the
windoze 'RunAs' service to start crond as the user you choose.


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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 problem with authentication

2004-05-27 Thread Igor Pechtchanski
On Thu, 27 May 2004, Mike Kenny - BCX - Mngd Services wrote:

  From: Larry Hall [mailto:[EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.

  At 03:52 AM 5/26/2004, you wrote:
  I previously posted a problem where a job failed attaching to an MQ
  Q Manager when run from cron. The explanation that was provided
  was that because MQ authenticates the user using the NT services
  and cron had had to su to that user, bypassing these services, that
  the user running the job did not then have the correct credentials.
  
  This sounds plausible and certainly explains the behaviour I see, but
  what would be involved in cron checking to see under which user the
  cygwin session is running and if this is the same user as the cygwin
  cron service is running under. If they are the same then do not do
  the change of user? Would this enable the cron job to run with the
  correct credentials? Or am I totally misunderstanding the problem?
  I admit that I know little or nothing about either Windows security
  or how cygwin interacts with it.
  
  Thanks for any comments on this
 
 
  In the default installation, the user doing the su (as you refer to
  it) is the SYSTEM user.  The SYSTEM user has no access to remote SMB
  shares. So your idea doesn't work because it assumes something that
  isn't true.
 
  One possible alternative is to run cron as the user you want to run
  jobs as.  I don't recall, off-the-top-of-my-head, whether cron assumes
  that it will run as SYSTEM and, if so, this approach probably wouldn't
  work without changing the code.  Another alternative might be to use a
  service which allows accessing remote directories without requiring
  Windows authentication (i.e. not SMB).

 Larry, first, thanks for taking the time to respond. Possibly I do not
 understand your comments, but I am confused by the reference to shares.
 I have a situation where, on the windows side, cron is running as user
 'mqdisp'. This user is a member of the mqm group (required for MQ Series)
 and is an Administrator with permissions to log in as a service and to act
 as part of the Operating System. On the cywin side, mqdisp is the user that
 is trying to run the cron job that attaches to MQ Series. My event log is
 showing me the following:

  [754] MQSeries
Type: WARNING
Computer: TEST1
Time: 2004/05/27 10:50:14   ID:   8074
 Authorization failed as the SID 'S-1-5-21-776561741-1935655697-1343024091-1007' does 
 not match the entity 'system'.
   The Object Authority Manager received inconsistent data - the supplied SID does 
 not match that of the supplied entity information.
   Ensure that the application is supplying valid entity and SID information.

 While /etc/passwd has the following:

 SYSTEM:*:18:544:,S-1-5-18::
 mqdisp:unused_by_nt/2000/xp:1007:513:mqdisp,U-TEST1\mqdisp,S-1-5-21-776561741-1935655697-1343024091-1007:/home/mqdisp:/bin/bash

 The PS shows that cron is running as SYSTEM, and it seems that it is trying
 to use mqdisp's credentials to authenticate system.

 I hope the above better explains my problem.

Did you look at http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID?

 BTW, is there some way that I can login as 'system'? This might provide a
 way around this problem.

There is, but I doubt it'd be helpful.  That said, Google for
system-owned shell cygwin.

 Thanks for any input to this

Just try what's already been suggested -- run the cron daemon as mqdisp
(if that's the only thing you're using cron for) by using the --user and
--passwd options to cygrunsrv.
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!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

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



cron problem with authentication

2004-05-26 Thread Mike Kenny - BCX - Mngd Services
I previously posted a problem where a job failed attaching to an MQ
Q Manager when run from cron. The explanation that was provided 
was that because MQ authenticates the user using the NT services 
and cron had had to su to that user, bypassing these services, that
the user running the job did not then have the correct credentials.

This sounds plausible and certainly explains the behaviour I see, but
what would be involved in cron checking to see under which user the
cygwin session is running and if this is the same user as the cygwin
cron service is running under. If they are the same then do not do
the change of user? Would this enable the cron job to run with the
correct credentials? Or am I totally misunderstanding the problem?
I admit that I know little or nothing about either Windows security
or how cygwin interacts with it.

Thanks for any comments on this

--
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 problem with authentication

2004-05-26 Thread Larry Hall
At 03:52 AM 5/26/2004, you wrote:
I previously posted a problem where a job failed attaching to an MQ
Q Manager when run from cron. The explanation that was provided 
was that because MQ authenticates the user using the NT services 
and cron had had to su to that user, bypassing these services, that
the user running the job did not then have the correct credentials.

This sounds plausible and certainly explains the behaviour I see, but
what would be involved in cron checking to see under which user the
cygwin session is running and if this is the same user as the cygwin
cron service is running under. If they are the same then do not do
the change of user? Would this enable the cron job to run with the
correct credentials? Or am I totally misunderstanding the problem?
I admit that I know little or nothing about either Windows security
or how cygwin interacts with it.

Thanks for any comments on this


In the default installation, the user doing the su (as you refer to it)
is the SYSTEM user.  The SYSTEM user has no access to remote SMB shares.
So your idea doesn't work because it assumes something that isn't true.

One possible alternative is to run cron as the user you want to run jobs 
as.  I don't recall, off-the-top-of-my-head, whether cron assumes that
it will run as SYSTEM and, if so, this approach probably wouldn't work
without changing the code.  Another alternative might be to use a service
which allows accessing remote directories without requiring Windows 
authentication (i.e. not SMB).


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



cron problem report

2004-03-01 Thread Seiji Tokunaga
Hi,

I have trouble getting my cron to work. I have tried cron_diagnosis.sh
1.3 but I could not find any problems. I also did the suggestion from
the cron_diagnosis.sh output but it does not work. Here is the crontab
-l, cron_diagnose.sh output and the cygcheck -srv output. Hope you can
help me.

% crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
# (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
* * * * * `date`  ${HOME}/foo.log
%

-- output of cron_diganose.sh --
% bin/cron_diagnose.sh
cron_diagnose.sh 1.3

This script did not find any errors in your crontab 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
  $ cygrunsrv --start cron

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

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 files 'cygcheck.txt' *as an attachment*,
and NOT in the body of the mail message.

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Mar 01 15:16:52 2004

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(Seiji) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1003(Seiji) GID: 513(None)
0(root)  513(None)
544(Administrators)  545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\Home\Seiji'
MAKE_MODE = `unix'
PWD = `/home/Seiji'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Seiji\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `HEIMINSAMURAI'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Seiji'
LOGNAME = `Seiji'
LOGONSERVER = `\\HEIMINSAMURAI'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/Seiji/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0209'
PROGRAMFILES = `C:\Program Files'
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\Seiji\LOCALS~1\Temp'
TERM = `vt100'
TMP = `c:\DOCUME~1\Seiji\LOCALS~1\Temp'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'
USERDOMAIN = `HEIMINSAMURAI'
USERNAME = `Seiji'
USERPROFILE = `C:\Documents and Settings\Seiji'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS   194466Mb  30% CP CS UN PA FC 
d:  cd   N/AN/A
e:  cd   N/AN/A
f:  hd  NTFS   194474Mb  72% CP CS UN PA FC Max200G-2
h:  fd   N/AN/A

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
  cygbz2-1.dll v0.0 ts=2003/8/9 2:35
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - 

RE: cron problem report

2004-03-01 Thread Harig, Mark
Please try version 1.4.  It has additional checks.

http://sources.redhat.com/ml/cygwin/2004-02/msg01341.html

 -Original Message-
 From: Seiji Tokunaga [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 3:27 PM
 To: [EMAIL PROTECTED]
 Subject: cron problem report
 
 
 Hi,
 
 I have trouble getting my cron to work. I have tried cron_diagnosis.sh
 1.3 but I could not find any problems. I also did the suggestion from
 the cron_diagnosis.sh output but it does not work. Here is the crontab
 -l, cron_diagnose.sh output and the cygcheck -srv output. Hope you can
 help me.
 
 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 
 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log
 %
 
 -- output of cron_diganose.sh --
 % bin/cron_diagnose.sh
 cron_diagnose.sh 1.3
 
 This script did not find any errors in your crontab 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
   $ cygrunsrv --start cron
 
 If the cron service does not start, try deleting the file
 /var/run/cron.pid and then repeating the commands above.
 
 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 files 'cygcheck.txt' *as an attachment*,
 and NOT in the body of the mail message.
 

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

2004-03-01 Thread Harig, Mark
 
 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 
 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log
 %

Do not include backquotes on 'date' -- you
are instructing cron to execute the date
string.  Simply use:

   * * * * * date  /usr/tmp/date.txt

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

2004-03-01 Thread Thorsten Kampe
* Seiji Tokunaga (2004-03-01 21:27 +0100)
 I have trouble getting my cron to work.

Please consider explaining what you mean by this otherwise any answer
to your report won't satisfy you.

 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log

This script (`date`  ${HOME}/foo.log) doesn't even work in a plain
shell so for sure not in cron. Read /var/cron/log, the system and
application entries in the eventviewer and the mail that cron probably
sent you in ~/dead.letter.

Hint: use executables with full path in crontab or set PATH in
crontab. Don't take for granted that the normal environment variables
are set ($HOME) and consider reading the man page of crontab.

Thorsten


--
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 problem after using hibernate

2003-12-21 Thread Larry Hall
At 03:25 PM 12/20/2003, David Bath you wrote:
I have been running cron for over a year now without any problems until recently. 
Typically I leave my PC running XP on all day and then hibernate it very late in the 
evening, turning it back on each morning. Cron would run without fail executing as 
expected until sometime after 11/21. Around that time I used setup to update all out 
of date programs, and 2 that updated were cygrunsrv and cron. After that update, cron 
no longer performs anything in my crontab once the PC has been hibernated and then 
turned back on. Rebooting or restrting cron by executing cygrunsrv -E cron then 
cygrunsrv -S cron fixes the problem everytime. The ps output always shows cron even 
when cron doesn't work.

I've tried reverting to older cron and cygrunsrv in all combinations and none of it 
fixed the problem. I've looked over the problem reports and saw nothing there either. 
I've run the most recent cron_check.sh and it reports no problems.

I've attached the cygcheck output, but not my crontab since it works correctly after 
the cron restarts so I doubt it's the problem.


Do you google?

http://www.cygwin.com/ml/cygwin/2003-10/msg00978.html

For future reference, this list prefers that you *attach* the output of 
cygcheck rather than including it in the context of the email message. 
Attaching helps limit 'false positive' hits when searching the archives.
TIA for you help in this matter.


--
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 problem after using hibernate

2003-12-21 Thread Igor Pechtchanski
On Sun, 21 Dec 2003, Larry Hall wrote:

 At 03:25 PM 12/20/2003, David Bath you wrote:
 [snip]
 I've attached the cygcheck output, but not my crontab since it works
 correctly after the cron restarts so I doubt it's the problem.

 Do you google?

 http://www.cygwin.com/ml/cygwin/2003-10/msg00978.html

 For future reference, this list prefers that you *attach* the output of
 cygcheck rather than including it in the context of the email message.
 Attaching helps limit 'false positive' hits when searching the archives.
 TIA for you help in this matter.
 --
 Larry Hall

Larry, the cygcheck output *was* attached -- look at the Raw text.
Guess someone needs to tweak the archive scripts (I'd take a look if I
knew where they were).

Line wrapping would have been nice, though.
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!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
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 problem after using hibernate

2003-12-21 Thread David Bath
Larry Hall wrote:
At 03:25 PM 12/20/2003, David Bath you wrote:

I have been running cron for over a year now without any problems until recently. Typically I leave my PC running XP on all day and then hibernate it very late in the evening, turning it back on each morning. Cron would run without fail executing as expected until sometime after 11/21. Around that time I used setup to update all out of date programs, and 2 that updated were cygrunsrv and cron. After that update, cron no longer performs anything in my crontab once the PC has been hibernated and then turned back on. Rebooting or restrting cron by executing cygrunsrv -E cron then cygrunsrv -S cron fixes the problem everytime. The ps output always shows cron even when cron doesn't work.

I've tried reverting to older cron and cygrunsrv in all combinations and none of it fixed the problem. I've looked over the problem reports and saw nothing there either. I've run the most recent cron_check.sh and it reports no problems.

I've attached the cygcheck output, but not my crontab since it works correctly after the cron restarts so I doubt it's the problem.


Do you google?

http://www.cygwin.com/ml/cygwin/2003-10/msg00978.html
Could be my problem, but as I mentioned it had worked flawlessly for at 
least a year even with daily hibernation until just very recently, so 
I'd be surprised if that is the cause of my problem. But on the other 
hand, being an experienced software engineer I know stranger things do 
happen, so you never know.

For future reference, this list prefers that you *attach* the output of 
cygcheck rather than including it in the context of the email message. 
Attaching helps limit 'false positive' hits when searching the archives.
TIA for you help in this matter.
I did attach it as I have been a long time reader of this list and knew 
of this recommendation. It does show as an attachment in the digest I 
received this morning. TIA yourself Larry.



--
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 problem after using hibernate

2003-12-21 Thread Larry Hall
At 03:31 PM 12/21/2003, Igor Pechtchanski you wrote:
On Sun, 21 Dec 2003, Larry Hall wrote:

 At 03:25 PM 12/20/2003, David Bath you wrote:
 [snip]
 I've attached the cygcheck output, but not my crontab since it works
 correctly after the cron restarts so I doubt it's the problem.

 Do you google?

 http://www.cygwin.com/ml/cygwin/2003-10/msg00978.html

 For future reference, this list prefers that you *attach* the output of
 cygcheck rather than including it in the context of the email message.
 Attaching helps limit 'false positive' hits when searching the archives.
 TIA for you help in this matter.
 --
 Larry Hall

Larry, the cygcheck output *was* attached -- look at the Raw text.


OK.


Guess someone needs to tweak the archive scripts 


I guess so...



--
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 problem after using hibernate

2003-12-21 Thread Larry Hall
At 03:46 PM 12/21/2003, David Bath you wrote:
Larry Hall wrote:
At 03:25 PM 12/20/2003, David Bath you wrote:

I have been running cron for over a year now without any problems until recently. 
Typically I leave my PC running XP on all day and then hibernate it very late in 
the evening, turning it back on each morning. Cron would run without fail executing 
as expected until sometime after 11/21. Around that time I used setup to update all 
out of date programs, and 2 that updated were cygrunsrv and cron. After that 
update, cron no longer performs anything in my crontab once the PC has been 
hibernated and then turned back on. Rebooting or restrting cron by executing 
cygrunsrv -E cron then cygrunsrv -S cron fixes the problem everytime. The ps 
output always shows cron even when cron doesn't work.

I've tried reverting to older cron and cygrunsrv in all combinations and none of it 
fixed the problem. I've looked over the problem reports and saw nothing there 
either. I've run the most recent cron_check.sh and it reports no problems.

I've attached the cygcheck output, but not my crontab since it works correctly 
after the cron restarts so I doubt it's the problem.

Do you google?
http://www.cygwin.com/ml/cygwin/2003-10/msg00978.html

Could be my problem, but as I mentioned it had worked flawlessly for at least a year 
even with daily hibernation until just very recently, so I'd be surprised if that is 
the cause of my problem. But on the other hand, being an experienced software 
engineer I know stranger things do happen, so you never know.


Well, that seems to be the latest wisdom on this issue, unless someone 
else pipes up with some more specific debugging that would suggest otherwise.
Of course, that doesn't mean there isn't a solution.  But this post would
suggest that the problem isn't Cygwin-specific.


For future reference, this list prefers that you *attach* the output of cygcheck 
rather than including it in the context of the email message. Attaching helps limit 
'false positive' hits when searching the archives.
TIA for you help in this matter.

I did attach it as I have been a long time reader of this list and knew of this 
recommendation. It does show as an attachment in the digest I received this morning. 
TIA yourself Larry.


You're welcome.  It doesn't show up as an attachment for me (that's fine)
or the email archives (which I checked before commenting).  Guess that's
an issue for the archives, as Igor pointed out.



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



Cron problem after using hibernate

2003-12-20 Thread David Bath
I have been running cron for over a year now without any problems until 
recently. Typically I leave my PC running XP on all day and then 
hibernate it very late in the evening, turning it back on each morning. 
Cron would run without fail executing as expected until sometime after 
11/21. Around that time I used setup to update all out of date programs, 
and 2 that updated were cygrunsrv and cron. After that update, cron no 
longer performs anything in my crontab once the PC has been hibernated 
and then turned back on. Rebooting or restrting cron by executing 
cygrunsrv -E cron then cygrunsrv -S cron fixes the problem 
everytime. The ps output always shows cron even when cron doesn't work.

I've tried reverting to older cron and cygrunsrv in all combinations and 
none of it fixed the problem. I've looked over the problem reports and 
saw nothing there either. I've run the most recent cron_check.sh and it 
reports no problems.

I've attached the cygcheck output, but not my crontab since it works 
correctly after the cron restarts so I doubt it's the problem.


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sat Dec 20 13:35:03 2003

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   .
C:\cygwin\home\David\scripts
C:\cygwin\home\David\bin
.
C:\cygwin\home\David\scripts
C:\cygwin\home\David\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
.
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
C:\cygwin\usr\local\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\COMMAND
c:\WINDOWS\system32\WBEM
c:\Program Files\Common Files\Adaptec Shared\System
c:\WINDOWS
c:\WINDOWS\COMMAND
C:\cygwin\usr\X11R6\bin
C:\cygwin\home\David\moderate
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\sbin
C:\cygwin\home\David\moderate
C:\cygwin\usr\sbin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(David) GID: 544(Administrators)
544(Administrators)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(David) GID: 544(Administrators)
544(Administrators)  545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\David'
MAKE_MODE = `unix'
USER = `David'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\David\Application Data'
BLASTER = `A220 I7 D1 H7 P330 T6'
CDPATH = `.:/home/David:/home/David/moderate:/home/David/rahe'
CDSET = `set'
CLASSPATH = `C:\Program Files\JavaSoft\JRE\1.3.0_01\lib\ext\QTJava.zip;C:\Program 
Files\JavaSoft\JRE\1.3.0_01\lib\ext\QTJava.zip'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `DESKTOP'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CTSYN = `C:\WINDOWS'
CYGWIN_ROOT = `c:\cygwin'
DISPLAY = `127.0.0.1:0.0'
EDITOR = `nedit -columns 70 -xrm nedit.maxPrevOpenFiles: 0'
ENV = `${START[ (_$- = 1) + (_ = 0) - (_$- != _${-%%*i*}) ]}'
HISTFILE = `/home/David/.sh_history'
HISTSIZE = `1024'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\David'
HOST = `desktop'
LOGNAME = `David'
LOGONSERVER = `\\DESKTOP'
MAIL = `/var/spool/mail/David'
MAILCHECK = `0'
MANPATH = `:/usr/X11R6/man:/usr/ssl/man:/usr/share/man:/usr/man'
MOUSE = `c:\imouse'
NNTPSERVER = `news.newsguy.com'
NUMBER_OF_PROCESSORS = `1'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `:/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 2 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0202'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$p$g'
PS1 = `desktop$ '
QTJAVA = `C:\Program Files\JavaSoft\JRE\1.3.0_01\lib\ext\QTJava.zip'
SBPCI = `C:\SBPCI'
SESSIONNAME = `Console'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\David\LOCALS~1\Temp'
TERM = `xterm'
USERDOMAIN = `DESKTOP'
USERNAME = `David'
USERPROFILE = `C:\Documents and Settings\David'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
WINDOWID = `6291470'
XAPPLRESDIR = `/home/David/.app-defaults'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start 
Menu2\Programs\Accessories\Cygnus Solutions
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start 
Menu2\Programs\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus 

Re: cron problem in W2K Proffesional

2002-12-09 Thread Andrew DeFaria
Eric De La Cruz Lugo wrote:


The cron works now!, the output its ok (date.txt).

but with my script the things are different, here are
the files I use.. I tested the script from the command
line and work flawlesly, but when i add it to my
crontab it does not work has expected!

the files are atached to the mail, and the output from
the script being executed by the cron its there too.

hope you can help me or advise me.


My suspicion would be that somewhere along the line you are referencing 
a mount point or a mapped location that just is not accessible from 
cron. Cron's environment does not insure that all network locations are 
accessible. I remember asking about this in the past. There is some 
difference between mount points where some are global and some are 
not. IIRC I never got a satisfactory answer as to the question of how 
one tells the difference.

You should probably add some cron entries to ls various files you depend 
on using their exact paths that you use in your scripts. One of them 
will most likely fail.

Meantime you might want to set up SMTP so that cron can email you when 
you make typos like /usr/sbin/date... :-)




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo
Hi!, i just installed cygwin in my PC in order to run
a shell script, this script run just fine form the
command line, now i need to run this script every
minute (cron and crontab issue).

I have read all the mail list and FAQ and README files
and applied every posible hint and advise, but my
script does not run from cron.

here is my configuration.


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Dec 06 10:41:26 2002

Windows 2000 Professional Ver 5.0 Build 2195 Service
Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem 
c:\Archivos de programa\progress
c:\Archivos de programa\progress\bin
c:\temp\bin\usr\local\wbin
c:\progress\wrk\appreplicacion

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\asuncion1'
MAKE_MODE = `unix'
PWD = `/home/asuncion1'
USER = `asuncion1'

ALLUSERSPROFILE = `C:\Documents and Settings\All
Users'
APPDATA = `C:\Documents and Settings\asuncion1\Datos
de programa'
COMMONPROGRAMFILES = `C:\Archivos de programa\Archivos
comunes'
COMPUTERNAME = `SRVCORDEMEX'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DLC = `c:\Archivos de programa\Progress'
DLCBIN = `c:\Archivos de programa\Progress\bin'
HOMEDRIVE = `C:'
HOMEPATH = `\'
LOGONSERVER = `\\SRVCORDEMEX'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT =
`.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 0 Stepping
10, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `000a'
PROCFG = `C:\Archivos de
programa\Progress\progress.cfg'
PROGRAMFILES = `C:\Archivos de programa'
PROMPT = `$P$G'
PROMSGS = `C:\Archivos de programa\Progress\promsgs'
PROOIBRK = `C:\Archivos de
programa\Progress\bin\oibrkr32.exe'
PROOIDRV = `C:\Archivos de
programa\Progress\bin\oidrvr32.exe'
PROSTARTUP = `C:\Archivos de
programa\Progress\startup_oib.pf'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\DOCUME~1\ASUNCI~1\CONFIG~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\ASUNCI~1\CONFIG~1\Temp'
USERDOMAIN = `SRVCORDEMEX'
USERNAME = `asuncion1'
USERPROFILE = `C:\Documents and Settings\asuncion1'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS   19085Mb  84% CP CS UN PA FC 
d:  fd   N/AN/A

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  userbinmode,cygdrive

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: c:\temp\bin\usr\local\wbin\cat.exe
Warning: C:\cygwin\bin\cat.exe hides
c:\temp\bin\usr\local\wbin\cat.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Found: c:\temp\bin\usr\local\wbin\find.exe
Warning: C:\cygwin\bin\find.exe hides
c:\temp\bin\usr\local\wbin\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: c:\temp\bin\usr\local\wbin\ls.exe
Warning: C:\cygwin\bin\ls.exe hides
c:\temp\bin\usr\local\wbin\ls.exe
Found: c:\temp\bin\usr\local\wbin\make.exe
Found: C:\cygwin\bin\sh.exe

   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0
img=1.0 sys=4.0
  cygform5.dll v0.0 ts=2001/4/25
0:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0
img=1.0 sys=4.0
  cygform6.dll v0.0 ts=2002/1/9 0:03
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0
img=1.0 sys=4.0
  cyggdbm.dll v0.0 ts=2002/2/19
21:05
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll -
os=4.0 img=1.0 sys=4.0
  cyghistory4.dll v0.0 ts=2001/1/6
22:34
   20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll -
os=4.0 img=1.0 sys=4.0
  cyghistory5.dll v0.0 ts=2002/10/10
12:28
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll -
os=4.0 img=1.0 sys=4.0
  cygiconv-2.dll v0.0 ts=2002/6/24
13:24
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0
img=1.0 sys=4.0
  cygintl-1.dll v0.0 ts=2001/12/13
3:28
   28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll - os=4.0
img=1.0 sys=4.0
  cygintl-2.dll v0.0 ts=2002/9/19
22:13
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0
img=1.0 sys=4.0
  cygintl.dll v0.0 ts=2001/6/20
12:09
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0
img=1.0 sys=4.0
  cygmenu5.dll v0.0 ts=2001/4/25
0:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0
img=1.0 sys=4.0
  cygmenu6.dll v0.0 ts=2002/1/9 0:03
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll -
os=4.0 img=1.0 sys=4.0
  cygncurses++5.dll v0.0
ts=2001/4/25 0:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll -
os=4.0 img=1.0 sys=4.0
  

Re: cron problem in W2K Proffesional

2002-12-06 Thread Christopher Faylor
On Fri, Dec 06, 2002 at 08:49:06AM -0800, Eric De La Cruz Lugo wrote:
Hi!, i just installed cygwin in my PC in order to run
a shell script, this script run just fine form the
command line, now i need to run this script every
minute (cron and crontab issue).

I have read all the mail list and FAQ and README files
and applied every posible hint and advise, but my
script does not run from cron.

http://cygwin.com/bugs.html

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Fwd: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo
Just for the record, i have done the following:

cygrunsrv -E cron
cygrunsrv -R cron
cygrunsrv -I cron -p /usr/sbin/cron -a -D -e
CYGWIN=tty ntsec
cygrunsrv -S cron

Here is my new output too.

after doing:

$CYGWIN='tty ntsec'
$EXPORT CYGWIN


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Dec 06 12:29:13 2002

Windows 2000 Professional Ver 5.0 Build 2195 Service
Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem 
c:\Archivos de programa\progress
c:\Archivos de programa\progress\bin
c:\temp\bin\usr\local\wbin
c:\progress\wrk\appreplicacion

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN = `tty ntsec'
HOME = `C:\cygwin\home\asuncion1'
MAKE_MODE = `unix'
PWD = `/home/asuncion1'
USER = `asuncion1'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS   19085Mb  84% CP CS UN PA FC 
d:  fd  FAT   95Mb  45% CPUN   ZIP-100

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  userbinmode,cygdrive

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: c:\temp\bin\usr\local\wbin\cat.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Found: c:\temp\bin\usr\local\wbin\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: c:\temp\bin\usr\local\wbin\ls.exe
Found: c:\temp\bin\usr\local\wbin\make.exe
Found: C:\cygwin\bin\sh.exe

   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll
   50k 2002/03/12 C:\cygwin\bin\cygz.dll
  906k 2002/11/07 C:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.15
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 63
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix: 
Build date: Thu Nov 7 13:57:47 EST 2002
CVS tag: cygwin-1-3-15-1
Shared id: cygwin1S3


Cygwin Package Information
Package Version 
_update-info-dir00087-1 
ash 20020731-1  
base-files  1.0-1   
base-passwd 1.0-1   
bash2.05b-7 
cron3.0.1-7 
ctags   5.2-1   
cygrunsrv   0.95-1  
cygutils1.1.3-1 
cygwin  1.3.15-2
diff1.0-1   
diffutils   2.8.1-1 
ed  0.2-1   
fileutils   4.1-1   
findutils   4.1.7-4 
gawk3.1.1-5 
gdbm1.8.0-4 
gettext 0.11.5-1
grep2.5-1   
gzip1.3.3-4 
libiconv2   1.8-2   
libintl 0.10.38-3   
libintl10.10.40-1   
libintl20.11.5-1
libncurses5 5.2-1   
libncurses6 5.2-8   
libpopt01.6.4-4 
libreadline44.1-2   
libreadline54.3-2   
login   1.6-1   
mc  4.5.55-1
nano1.1.10-1
ncurses 5.2-8   
pcre3.7-1   
readline4.3-2   
rxvt2.7.2-14
sed 4.0.1-1 

Fwd: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo
Information about passwd and group files

Just for the record (again)

passwd file:

SYSTEM:*:18:544:,S-1-5-18::
Administradores:*:544:544:,S-1-5-32-544::
Administrador:unused_by_nt/2000/xp:500:513:U-SRVCORDEMEX\Administrador,S-1-5-21-854245398-1202660629-1343024091-500:/home/Administrador:/bin/bash
asuncion1:unused_by_nt/2000/xp:1000:513:asuncion,U-SRVCORDEMEX\asuncion1,S-1-5-21-854245398-1202660629-1343024091-1000:/home/asuncion1:/bin/bash
Gustavo:unused_by_nt/2000/xp:1007:513:GUstavo Maqy
Kuk,U-SRVCORDEMEX\Gustavo,S-1-5-21-854245398-1202660629-1343024091-1007:/home/Gustavo:/bin/bash
Invitado:unused_by_nt/2000/xp:501:513:U-SRVCORDEMEX\Invitado,S-1-5-21-854245398-1202660629-1343024091-501:/home/Invitado:/bin/bash
IUSR_ASUNCION:unused_by_nt/2000/xp:1001:513:Cuenta de
invitado a
Internet,U-SRVCORDEMEX\IUSR_ASUNCION,S-1-5-21-854245398-1202660629-1343024091-1001:/home/IUSR_ASUNCION:/bin/bash
IUSR_SRVCORDEMEX:unused_by_nt/2000/xp:1009:513:Cuenta
de invitado a
Internet,U-SRVCORDEMEX\IUSR_SRVCORDEMEX,S-1-5-21-854245398-1202660629-1343024091-1009:/home/IUSR_SRVCORDEMEX:/bin/bash
IWAM_ASUNCION:unused_by_nt/2000/xp:1002:513:Iniciar la
cuenta de proceso
IIS,U-SRVCORDEMEX\IWAM_ASUNCION,S-1-5-21-854245398-1202660629-1343024091-1002:/home/IWAM_ASUNCION:/bin/bash
IWAM_SRVCORDEMEX:unused_by_nt/2000/xp:1010:513:Iniciar
la cuenta de proceso
IIS,U-SRVCORDEMEX\IWAM_SRVCORDEMEX,S-1-5-21-854245398-1202660629-1343024091-1010:/home/IWAM_SRVCORDEMEX:/bin/bash
rvargass:unused_by_nt/2000/xp:1003:513:Roberto
Vargas,U-SRVCORDEMEX\rvargass,S-1-5-21-854245398-1202660629-1343024091-1003:/home/rvargass:/bin/bash
tepeyac:unused_by_nt/2000/xp:1008:513:tepeyac,U-SRVCORDEMEX\tepeyac,S-1-5-21-854245398-1202660629-1343024091-1008:/home/tepeyac:/bin/bash

group file:


SYSTEM:S-1-5-18:18:
Everyone:S-1-1-0:0:
Ninguno:S-1-5-21-854245398-1202660629-1343024091-513:513:
Administradores:S-1-5-32-544:544:
Duplicadores:S-1-5-32-552:552:
Invitados:S-1-5-32-546:546:
Operadores de copia:S-1-5-32-551:551:
Usuarios:S-1-5-32-545:545:
Usuarios avanzados:S-1-5-32-547:547:
SRVCORDEMEX
Administradores:S-1-5-21-854245398-1202660629-1343024091-1004:1004:
SRVCORDEMEX
Autores:S-1-5-21-854245398-1202660629-1343024091-1005:1005:
SRVCORDEMEX
Visitantes:S-1-5-21-854245398-1202660629-1343024091-1006:1006:



Eric De La Cruz Lugo
Merida, Yucatan, Mexico



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Harig, Mark A.
1. Have you read /usr/doc/Cygwin/cron.README?

2. Have you tried using a simple crontab entry?
   What have you tried?

For future reference, please include your 'cygcheck.txt'
file as an attachment only.

 
 Just for the record, i have done the following:
 
 cygrunsrv -E cron
 cygrunsrv -R cron
 cygrunsrv -I cron -p /usr/sbin/cron -a -D -e
 CYGWIN=tty ntsec
 cygrunsrv -S cron
 
 Here is my new output too.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo
1. Have you read /usr/doc/Cygwin/cron.README?

Yes.

2. Have you tried using a simple crontab entry?
   What have you tried?

yes i am using now the following example:
crontab -e

* * * * * /usr/bin/date  /tmp/date.txt

as you suggested to Buck Turgidson

but there is nothing yet in /tmp/ (6 minutes waiting)

yes the /tmp directory has the 777 permissions

thanks for your hints!


For future reference, please include your
'cygcheck.txt'
file as an attachment only.

Ok, I will.

Eric De La Cruz Lugo
Merida Yucatan Mexico.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Harig, Mark A.
What are the ownership/permissions for '/var'?  That is,

   ls -ld /var

 -Original Message-
 From: Eric De La Cruz Lugo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 2:09 PM
 To: [EMAIL PROTECTED]
 Subject: RE: cron problem in W2K Proffesional
 
 
 1. Have you read /usr/doc/Cygwin/cron.README?
 
 Yes.
 
 2. Have you tried using a simple crontab entry?
What have you tried?
 
 yes i am using now the following example:
 crontab -e
 
 * * * * * /usr/bin/date  /tmp/date.txt
 
 as you suggested to Buck Turgidson
 
 but there is nothing yet in /tmp/ (6 minutes waiting)
 
 yes the /tmp directory has the 777 permissions
 
 thanks for your hints!
 
 
 For future reference, please include your
 'cygcheck.txt'
 file as an attachment only.
 
 Ok, I will.
 
 Eric De La Cruz Lugo
 Merida Yucatan Mexico.
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo

--- Harig, Mark A. [EMAIL PROTECTED] wrote:
 What are the ownership/permissions for '/var'?  That
 is,
 
ls -ld /var
 
drwxrwxrwx 6  Administ   Ninguno   0 Apr
12 2002  /var


drwxrwxrwx 3  asuncion   Ninguno   0 Apr
12 2002  /var/cron

drwxrwxrwx 2  asuncion   Ninguno   0 Dec 6
13:04  /var/cron/tabs

-rw-r- 1  asuncion   SYSTEM234 Dec
6 13:04  /var/cron/tabs/asuncion1



(Ninguno = None) (sorry is windows 2k in spanish.)


Eric De La Cruz Lugo
Merida Yucatan Mexico

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Harig, Mark A.
 
 drwxrwxrwx 3  asuncion   Ninguno   0 Apr
 12 2002  /var/cron
 
 drwxrwxrwx 2  asuncion   Ninguno   0 Dec 6
 13:04  /var/cron/tabs
 

For some reason, your 'sticky bit' settings didn't get set
for /var/cron/ and /var/cron/tabs/.

Instead of 'drwxrwxrwx', your permissions should be
'drwxrwxrwt'.

Try:

   chmod 1777 /var/cron
   chmod 1777 /var/cron/tabs



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Harig, Mark A.
Also, once you have done this, shut down
your cron service and restart it.

 -Original Message-
 From: Harig, Mark A. 
 Sent: Friday, December 06, 2002 4:20 PM
 To: Eric De La Cruz Lugo; [EMAIL PROTECTED]
 Subject: RE: cron problem in W2K Proffesional
 
 
  
  drwxrwxrwx 3  asuncion   Ninguno   0 Apr
  12 2002  /var/cron
  
  drwxrwxrwx 2  asuncion   Ninguno   0 Dec 6
  13:04  /var/cron/tabs
  
 
 For some reason, your 'sticky bit' settings didn't get set
 for /var/cron/ and /var/cron/tabs/.
 
 Instead of 'drwxrwxrwx', your permissions should be
 'drwxrwxrwt'.
 
 Try:
 
chmod 1777 /var/cron
chmod 1777 /var/cron/tabs
 
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo

Ok, I have made the changes, now the directories show:

total 4
drwxrwxrwx6 Administ Ninguno 0 Apr 12 
2002 .
drwxrwxrwx   10 Administ Ninguno  4096 Dec  5
19:38 ..
drwxrwxrwt3 asuncion Ninguno 0 Apr 12 
2002 cron
drwxrwxrwx2 Administ Ninguno 0 Dec  5
18:46 log
drwxrwxrwx2 Administ Ninguno 0 Dec  5
18:46 run
drwxrwxrwx2 Administ Ninguno 0 Apr 12 
2002 tmp



total 1
drwxrwxrwt3 asuncion Ninguno 0 Dec  6
15:44 .
drwxrwxrwx6 Administ Ninguno 0 Apr 12 
2002 ..
-rw-rw-rw-1 asuncion Ninguno 0 Dec  6
15:44 lista
-rw-rw-rw-1 asuncion Ninguno   318 Dec  6
15:44 listatabs.txt
drwxrwxrwt2 asuncion Ninguno 0 Dec  6
15:44 tabs




total 2
drwxrwxrwt2 asuncion Ninguno 0 Dec  6
15:44 .
drwxrwxrwt3 asuncion Ninguno 0 Dec  6
15:44 ..
-rw-r-1 asuncion SYSTEM234 Dec  6
13:04 asuncion1
-rw-rw-rw-1 asuncion Ninguno   264 Dec  6
15:44 listacrontab.txt


I restarted the cron daemon, and waited for 5 minutes,
nothing happens yet.

Other ideas?

Eric De La Cruz Lugo
Merida Yucatan Mexico





-
Also, once you have done this, shut down
your cron service and restart it.

 -Original Message-
 From: Harig, Mark A. 
 Sent: Friday, December 06, 2002 4:20 PM
 To: Eric De La Cruz Lugo; [EMAIL PROTECTED]
 Subject: RE: cron problem in W2K Proffesional
 
 
  
  drwxrwxrwx 3  asuncion   Ninguno   0
Apr
  12 2002  /var/cron
  
  drwxrwxrwx 2  asuncion   Ninguno   0
Dec 6
  13:04  /var/cron/tabs
  
 
 For some reason, your 'sticky bit' settings didn't
get set
 for /var/cron/ and /var/cron/tabs/.
 
 Instead of 'drwxrwxrwx', your permissions should be
 'drwxrwxrwt'.
 
 Try:
 
chmod 1777 /var/cron
chmod 1777 /var/cron/tabs


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Harig, Mark A.
It appears as though everything is set correctly.

Try:

   1. Shut down your cron service.
   2. Run Cygwin's setup.exe to uninstall 'cron'.
   3. Run setup.exe a second time to download/install
  a new copy of 'cron'.
   4. Reboot your computer.
   5. Check your crontab: crontab -l
   6. Install the cron service and start it.

 -Original Message-
 From: Eric De La Cruz Lugo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 4:53 PM
 To: Harig, Mark A.; [EMAIL PROTECTED]
 Subject: RE: cron problem in W2K Proffesional
 
 
 
 Ok, I have made the changes, now the directories show:
 
 total 4
 drwxrwxrwx6 Administ Ninguno 0 Apr 12 
 2002 .
 drwxrwxrwx   10 Administ Ninguno  4096 Dec  5
 19:38 ..
 drwxrwxrwt3 asuncion Ninguno 0 Apr 12 
 2002 cron
 drwxrwxrwx2 Administ Ninguno 0 Dec  5
 18:46 log
 drwxrwxrwx2 Administ Ninguno 0 Dec  5
 18:46 run
 drwxrwxrwx2 Administ Ninguno 0 Apr 12 
 2002 tmp
 
 
 
 total 1
 drwxrwxrwt3 asuncion Ninguno 0 Dec  6
 15:44 .
 drwxrwxrwx6 Administ Ninguno 0 Apr 12 
 2002 ..
 -rw-rw-rw-1 asuncion Ninguno 0 Dec  6
 15:44 lista
 -rw-rw-rw-1 asuncion Ninguno   318 Dec  6
 15:44 listatabs.txt
 drwxrwxrwt2 asuncion Ninguno 0 Dec  6
 15:44 tabs
 
 
 
 
 total 2
 drwxrwxrwt2 asuncion Ninguno 0 Dec  6
 15:44 .
 drwxrwxrwt3 asuncion Ninguno 0 Dec  6
 15:44 ..
 -rw-r-1 asuncion SYSTEM234 Dec  6
 13:04 asuncion1
 -rw-rw-rw-1 asuncion Ninguno   264 Dec  6
 15:44 listacrontab.txt
 
 
 I restarted the cron daemon, and waited for 5 minutes,
 nothing happens yet.
 
 Other ideas?
 
 Eric De La Cruz Lugo
 Merida Yucatan Mexico
 
 
 
 
 
 -
 Also, once you have done this, shut down
 your cron service and restart it.
 
  -Original Message-
  From: Harig, Mark A. 
  Sent: Friday, December 06, 2002 4:20 PM
  To: Eric De La Cruz Lugo; [EMAIL PROTECTED]
  Subject: RE: cron problem in W2K Proffesional
  
  
   
   drwxrwxrwx 3  asuncion   Ninguno   0
 Apr
   12 2002  /var/cron
   
   drwxrwxrwx 2  asuncion   Ninguno   0
 Dec 6
   13:04  /var/cron/tabs
   
  
  For some reason, your 'sticky bit' settings didn't
 get set
  for /var/cron/ and /var/cron/tabs/.
  
  Instead of 'drwxrwxrwx', your permissions should be
  'drwxrwxrwt'.
  
  Try:
  
 chmod 1777 /var/cron
 chmod 1777 /var/cron/tabs
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo

--- Harig, Mark A. [EMAIL PROTECTED] wrote:
 It appears as though everything is set correctly.
 
 Try:
 
1. Shut down your cron service.

Done.

2. Run Cygwin's setup.exe to uninstall 'cron'.

Done.

3. Run setup.exe a second time to
 download/install
   a new copy of 'cron'.

Done.

4. Reboot your computer.

Done.

5. Check your crontab: crontab -l

Done it shows:

# DO NOT EDIT THIS FILE - edit the master and
reinstall.
# (/tmp/crontab.1036 installed on Fri Dec  6 13:04:23
2002)
# (Cron version -- $Id: crontab.c,v 1.6 2001/09/19
17:09:55 corinna Exp $)
* * * * * /usr/sbin/date  /tmp/date.txt


6. Install the cron service and start it.

cygrunsrv -I cron -p /usr/sbin/cron -a -D -e
CYGWIN=tty ntsec

cygrunserv -S cron

ps -e shows:

  PIDPPIDPGID WINPID  TTY  UID   
STIME COMMAND
 1560   11560   1560  con 1000
17:35:32 /usr/bin/bash
 1420   11420   1420?   18
17:36:52 /usr/bin/cygrunsrv
 138414201420   1132?   18
17:36:52 /usr/sbin/cron
 104015601040   1648  con 1000
17:45:21 /usr/bin/ps


waited for 8 minutes and checked /tmpguess what???

NOTHING! there is no output yet :( no date.txt

anything else? other aproach to this problem?


 

Eric De La Cruz Lugo
Merida Yucatan, Mexico.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Harig, Mark A.
 5. Check your crontab: crontab -l
 
 Done it shows:
 
 # DO NOT EDIT THIS FILE - edit the master and
 reinstall.
 # (/tmp/crontab.1036 installed on Fri Dec  6 13:04:23
 2002)
 # (Cron version -- $Id: crontab.c,v 1.6 2001/09/19
 17:09:55 corinna Exp $)
 * * * * * /usr/sbin/date  /tmp/date.txt
 

Do you have a file '/usr/sbin/date'?  Usually, this is in
/usr/bin/ not /usr/sbin/.  At your shell prompt, enter:

   type date

or

   which date

---

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: cron problem in W2K Proffesional

2002-12-06 Thread Eric De La Cruz Lugo
The cron works now!, the output its ok (date.txt).

but with my script the things are different, here are
the files I use.. I tested the script from the command
line and work flawlesly, but when i add it to my
crontab it does not work has expected!

the files are atached to the mail, and the output from
the script being executed by the cron its there too.

hope you can help me or advise me.

the main file is 

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


scripts.zip
Description: scripts.zip


outputbadandgood.zip
Description: outputbadandgood.zip
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Help! - cron problem

2002-05-23 Thread cyg win



I'm trying to run cron daemon,
but when I run it, I got an error

   cron error
cron.exe has generated errors and will be closed by windows.
You will need to restart the program.
An error log is being created.

My system is Win2k professional, and I installed all cygwin package,
that's it. This is the first daemon I'm trying to run.
The way I run the daemon is

$ cygrunsrv -I cron -p /usr/sbin/cron -a -D
or
$ net start cron

what could be the problem??
(And where can I find 'error log'?)

Thank you.







_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Cron problem

2002-05-14 Thread Gerrit P. Haase

Cron writes:

 receiving file list ... done
 /TheBat/spamlist.txt
 wrote 16527 bytes  read 3178 bytes  3031.54 bytes/sec
 total size is 1915965  speedup is 97.23
 Can't open perl script /TheBat/spammer.pl: No such file or directory

spammer.pl is called by a perl script that is start by cron.
Why does one perl script don't find another one?
It is there:
$ ls -ln /TheBat/spammer.pl
-rwxrwxrwx1 11002544  4409 May 14 15:28 /TheBat/spammer.pl


I will now put all in one script, but I think this is weird.

Gerrit
-- 
=^..^=


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Cron problem

2002-05-14 Thread Gerrit P. Haase

Mark schrieb:

 Give me simple one or two-line perl scripts that duplicate your problem
 and I will try them.  The scripts should just print the working
 directory or the date or something simple like that.  It sounds like a
 PATH problem or a mount-point problem or the startup mode of cron.  Is
 CYGWIN=binmode ntfs tty?

Yep (ntsec;).


script1.pl:
#!/usr/bin/env perl
$cmd = perl /path/script2.pl;
system $cmd;
1;

script2.pl:
#!/usr/bin/env perl
print I'm script two.\n
1;

crontab -e:
[EMAIL PROTECTED]
1 * * * * /usr/bin/perl /path/script1.pl

Put both scripts in /path no mounts are involved.
The mail from Cron:
Can't open perl script /path/script2.pl: No such file or directory

It seems to be the problem that I didn't used an absolute path to perl
in script1.pl.
It works ok. if I change it to /usr/bin/perl.
It seems that Cron is running the wrong perl.  I need to fix my path.


Thanks for your help,

Gerrit
-- 
=^..^=


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cron problem

2002-03-05 Thread Michael Adler



On Tue, 5 Mar 2002, Corinna Vinschen wrote:

 On Thu, Feb 28, 2002 at 10:49:51AM -0500, Michael Adler wrote:
  What I think should really happen is that cron should create those
  directories during installation so they are owned by whoever installed
  cygwin

 Would you mind to help out and create an install script for
 /etc/postinstall?


I thought you could just inlude empty directories when you make the tar
ball

This worked for me too


#!/bin/bash

if [ -d /var/cron/tabs ] ; then
echo /var/cron/tabs already exists
else
echo creating /var/cron/tabs
mkdir -p /var/cron/tabs
fi




--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/




RE: cron problem

2002-02-28 Thread Sanjay Gupta

Thanks Michael,
I have read your post and I guess, I have started cron daemon first. I have
WinNT 4.0 SP6a and I was not able to delete the cron directory. I have tried
rm -rf cron and I have also tried deleteing the cron directory from WinNT
but I couldn't. It was saying that Access is denied or file is being used.
Then I asked my WinNT adminstrator to delete the cron directory and he was
able to do it with little efforts.
After delete cron directory, I first did crontab -e and put a dummy entry in
crontab * * * * * date  date.log
and then it worked.

Sanjay

-Original Message-
From: Michael Adler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 7:50 AM
To: Sanjay Gupta
Cc: '[EMAIL PROTECTED]'
Subject: Re: cron problem



I reported a related problem a few weeks ago and then reported a fix for
this last week.

Unfortunately, I haven't seen any response from the maintainers--perhaps I
reported this to the wrong list...

Did you start the cron daemon (as some other user?) before creating a
crontab? If yes, then that other user (probably 'SYSTEM') owns /var/cron
and you don't have write access.

On Win2k, you can change the owner of that directory, and then add that
user and give that user full control over /var/cron and /var/cron/tabs.

Next time, make a crontab before starting the cron daemon.


What I think should really happen is that cron should create those
directories during installation so they are owned by whoever installed
cygwin.

Best of luck.

Mike


On Wed, 27 Feb 2002, Sanjay Gupta wrote:

 Date: Wed, 27 Feb 2002 17:31:05 -0800
 From: Sanjay Gupta [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: cron problem

 Why, I am getting the following error when creating cronjobs.

 $ crontab -e
 no crontab for Administrator - using an empty one
 crontab: installing new crontab
 crontab: error renaming tabs/tmp.000107 to tabs/Administrator
 rename: Permission denied
 crontab: edits left in /tmp/crontab.107

 Sanjay

 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/


Mike


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cron problem

2002-02-27 Thread Sanjay Gupta

Why, I am getting the following error when creating cronjobs. 

$ crontab -e
no crontab for Administrator - using an empty one
crontab: installing new crontab
crontab: error renaming tabs/tmp.000107 to tabs/Administrator
rename: Permission denied
crontab: edits left in /tmp/crontab.107

Sanjay

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Cron problem

2001-12-23 Thread Jari Aalto

* Thu 2001-12-20 Corinna Vinschen [EMAIL PROTECTED] list.cygwin
* Message-Id: [EMAIL PROTECTED]
| On Thu, Dec 20, 2001 at 02:28:02PM -0500, Satya Nemana wrote:

 Any info on how to make this cron work, will be of great help to us all.

| Just to be sure, I'm telling my setup.

Thank you Corinna, however I have exactly the same problem as the original
poster. This is the error from event viewer after:

//root@W2KPICASSO $ cygrunsrv -I cron -p /usr/sbin/cron -a -D -e CYGWIN=binmode tty 
ntsec
//root@W2KPICASSO $ mkdir /home/system 
//root@W2KPICASSO $ net start cron
The cron service is starting.
The cron service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.


The description for Event ID ( 0 ) in Source ( 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. The following information is part of the event: cron : Win32
Process Id = 0xBC0 : Cygwin Process Id = 0xBC0 : starting service
`cron' failed: execv: 255, error 0.


I was missing the SYSTM from /etc/password, so Iadded the entry
by hand there and created /home/systemm as in your setup.

/var/cron/tabs/ is empty

-rw-r--r--1 root None  327 Sep 23 14:23 /etc/group
-rw-r--r--1 root None  509 Dec 24 01:49 /etc/passwd


| - cron installed with

|   cygrunsrv -I cron -p /usr/sbin/cron -a -D -e CYGWIN=binmode tty ntsec

| - My /etc/passwd (partly):

|   root:*:0:0:,S-1-5-32-544::
|   Everyone:*:1:1:,S-1-1-0::
|   SYSTEM:*:18:18:,S-1-5-18:/home/system:/bin/bash
|   corinna::100:0:,S-1-5-21-XXX-YYY-ZZZ-1003:/home/corinna:/bin/tcsh
|   dummy::101:545:,S-1-5-21-XXX-YYY-ZZZ-1004:/home/dummy:/bin/bash

| - My /etc/group (partly):

|   root:S-1-5-32-544:0:
|   everyone:S-1-1-0:1:
|   SYSTEM:S-1-5-18:18:
|   none:S-1-5-21-XXX-YYY-ZZZ-513:513:
|   users:S-1-5-32-545:545:

| - /etc, /etc/passwd and /etc/group world readable.

| - ls -laR /var/cron

|   /var/cron:
|   total 0
|   drwxrwxrwt3 corinna  root0 Jul 10 11:51 .
|   drwxr-xr-x6 dummyusers   0 Mar  8  2001 ..
|   drwxrwxrwt2 corinna  root0 Sep 19 19:00 tabs

Hm. How did you made ugo+rwx . ? In my system, logged in as Administrator,
the permissions still staty as:


//root@W2KPICASSO /var/cron $ chmod ugo+rwx .
//root@W2KPICASSO /var/cron $ ls -la
total 0
drwxr-xr-x3 root None0 Jul 11 12:27 .
drwxr-xr-x8 root None0 Feb 10  2001 ..
drwxr-xr-x2 root None0 Jul 11 12:27 tabs

|   /var/cron/tabs:
|   total 2
|   drwxrwxrwt2 corinna  root0 Sep 19 19:00 .
|   drwxrwxrwt3 corinna  root0 Jul 10 11:51 ..
|   -rw-r-1 dummySYSTEM225 Sep 19 19:00 dummy
|   -rw-r-1 corinna  SYSTEM230 Sep 19 18:58 corinna

|   `corinna' is an admin account, `dummy' is a standard user.

| Cron works fine for both accounts, corinna as well as dummy.

| I don't know what's your problem is.  I can just suggest to debug
| your installation.

Further debug instrustion where to look next are welcome.
is it possible to run cron at the foregroung with strace or
something in order to see why it fails?

Jari


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Cron problem

2001-12-20 Thread Corinna Vinschen

On Wed, Dec 19, 2001 at 03:15:42PM -0800, Ryan Koopmans wrote:
 Hello,
 
 I'm having trouble running cron with Cygwin:
 CYGWIN_NT-4.0 CITYWEB02 1.3.6(0.47/3/2) 2001-12-08 17:02 i686 unknown
 
 I installed cron with the command
 
 $ cygrunsrv -I cron -p /usr/sbin/cron -a -D -e CYGWIN=binmode tty ntsec -e 
MAILTO=rkoopmans@city
 ofsacramento.org
 
 I install a crontab with the contents
 * * * * * date  /crontest.out
 through crontab.
 
 The service starts, but nothing seems to happen.  Can anyone help me?

There should be at least somthing in the event log.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Cron problem

2001-12-20 Thread Corinna Vinschen

On Thu, Dec 20, 2001 at 02:28:02PM -0500, Satya Nemana wrote:
 Any info on how to make this cron work, will be of great help to us all.

Just to be sure, I'm telling my setup.

- cron installed with

  cygrunsrv -I cron -p /usr/sbin/cron -a -D -e CYGWIN=binmode tty ntsec

- My /etc/passwd (partly):

  root:*:0:0:,S-1-5-32-544::
  Everyone:*:1:1:,S-1-1-0::
  SYSTEM:*:18:18:,S-1-5-18:/home/system:/bin/bash
  corinna::100:0:,S-1-5-21-XXX-YYY-ZZZ-1003:/home/corinna:/bin/tcsh
  dummy::101:545:,S-1-5-21-XXX-YYY-ZZZ-1004:/home/dummy:/bin/bash

- My /etc/group (partly):

  root:S-1-5-32-544:0:
  everyone:S-1-1-0:1:
  SYSTEM:S-1-5-18:18:
  none:S-1-5-21-XXX-YYY-ZZZ-513:513:
  users:S-1-5-32-545:545:

- /etc, /etc/passwd and /etc/group world readable.

- ls -laR /var/cron

  /var/cron:
  total 0
  drwxrwxrwt3 corinna  root0 Jul 10 11:51 .
  drwxr-xr-x6 dummyusers   0 Mar  8  2001 ..
  drwxrwxrwt2 corinna  root0 Sep 19 19:00 tabs

  /var/cron/tabs:
  total 2
  drwxrwxrwt2 corinna  root0 Sep 19 19:00 .
  drwxrwxrwt3 corinna  root0 Jul 10 11:51 ..
  -rw-r-1 dummySYSTEM225 Sep 19 19:00 dummy
  -rw-r-1 corinna  SYSTEM230 Sep 19 18:58 corinna

  `corinna' is an admin account, `dummy' is a standard user.

Cron works fine for both accounts, corinna as well as dummy.

I don't know what's your problem is.  I can just suggest to debug
your installation.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cron problem: Can Domain user run cron

2001-12-19 Thread Tiffany Chan

Corinna,

There are two cases:
1. In domain controller server, both Domain admin and
Domain user can run cron correctly. There is no
problem

2. But in another w2k server (in domain, but not
domain controller), Domain admin run cron correctly .
But domain user cannot run cron, error : can't switch
user context. I used mkgroup and mkpasswd using
parameter -ld.

So did domain user run cron in server which is not
domain controller ?

Did any other suggestion for running cron job in case
two. I tried at command for w2k, it did not work as
it cannot used by admin only.

Thanks again and sorry.

ikbea




__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cron problem: Can Domain user run cron

2001-12-19 Thread Corinna Vinschen

On Wed, Dec 19, 2001 at 01:01:11PM +, Tiffany Chan wrote:
 Corinna,
 
 There are two cases:
 1. In domain controller server, both Domain admin and
 Domain user can run cron correctly. There is no
 problem
 
 2. But in another w2k server (in domain, but not
 domain controller), Domain admin run cron correctly .
 But domain user cannot run cron, error : can't switch
 user context. I used mkgroup and mkpasswd using
 parameter -ld.

Care for your /etc/group file as well.  It's probably correct on
the DC since the domain groups are also local groups for the DC.
It's very likely incorrect for a normal domain machine, though.
mkgroup -ld  /etc/group should help.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cron problem: Can Domain user run cron

2001-12-19 Thread Tiffany Chan

Corinna,

In that normal domain server, I tried to mkpasswd -ld
and passwd group -ld from seversal times, but still
not work. Hm...I have not change the group file after
made. For passwd file, i only change group of Domain
administrator from 10513(None) to 10512 (Domain
admin). I also did it in passwd file of domain
controller server.

Domain user use cygwin work very well in domain server
except cron.(e.g. domain user can rcp from/to domain
contoller)

thanks again and again
ikbea


On Wed, Dec 19, 2001 at 01:01:11PM +, Tiffany Chan
wrote:
 Corinna,
 
 There are two cases:
 1. In domain controller server, both Domain admin
and
 Domain user can run cron correctly. There is no
 problem
 
 2. But in another w2k server (in domain, but not
 domain controller), Domain admin run cron correctly
.
 But domain user cannot run cron, error : can't
switch
 user context. I used mkgroup and mkpasswd using
 parameter -ld.

Care for your /etc/group file as well.  It's probably
correct on
the DC since the domain groups are also local groups
for the DC.
It's very likely incorrect for a normal domain
machine, though.
mkgroup -ld  /etc/group should help.

Corinna


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Cron problem

2001-12-19 Thread Ryan Koopmans

Hello,

I'm having trouble running cron with Cygwin:
CYGWIN_NT-4.0 CITYWEB02 1.3.6(0.47/3/2) 2001-12-08 17:02 i686 unknown

I installed cron with the command

$ cygrunsrv -I cron -p /usr/sbin/cron -a -D -e CYGWIN=binmode tty ntsec -e 
MAILTO=rkoopmans@city
ofsacramento.org

I install a crontab with the contents
* * * * * date  /crontest.out
through crontab.

The service starts, but nothing seems to happen.  Can anyone help me?

Thanks,
Ryan Koopmans


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/