delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/16/23:54:06

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Kevin Markle <kmarkle AT pbs DOT org>
Subject: Thanks for the help I apparently am missing something here......
Date: Sat, 17 Mar 2007 00:53:18 -0400
Lines: 95
Message-ID: <mn.88357d73bb0c45d8.51129@pbs.org>
References: <mn DOT 7bb77d7398948eea DOT 51129 AT pbs DOT org> <45F9AB2D DOT 3090704 AT cygwin DOT com> <mn DOT 7bed7d7353a3a7ee DOT 51129 AT pbs DOT org> <02f601c76749$1ab68030$9c0010ac AT wirelessworld DOT airvananet DOT com> <mn DOT 7c277d73fb146edb DOT 51129 AT pbs DOT org> <030e01c7674c$c63b29d0$9c0010ac AT wirelessworld DOT airvananet DOT com> <etcg7r$hvh$1 AT sea DOT gmane DOT org> <01ca01c767b4$bd346410$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <45FAF8F7 DOT 7000201 AT portugalmail DOT pt> <loom DOT 20070316T211226-505 AT post DOT gmane DOT org> <45FAFE5C DOT 8060503 AT portugalmail DOT pt>
Reply-To: kmarkle AT pbs DOT org
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Pedro Alves explained :
> Eric Blake wrote:
>> Pedro Alves <pedro_alves <at> portugalmail.pt> writes:
>>
>>
>>> Dave Korn wrote:
>>>
>>>>   Ctrl+D is a better way to close the file actually.  If you mean EOF, 
>>>> why 
>>>>
>> not
>>
>>>> *say* EOF? 
>>>>   
>>>>
>>> Unless you type it one time too much, and ... uupps, there goes the shell 
>>> :)
>>>
>>
>> Which is why I have 'set -o ignoreeof' in my ~/.bashrc.
>>
>>
> Perfect!
> Thanks.
>
> Cheers,
> Pedro Alves
>
>
>
>
>> Or you could set the IGNOREEOF environment variable.
>>
>> And you don't like ^D?  Then stty can change EOF to some other sequence.

I recieved some advice about not having a network drive attached to the 
profile I was logging into so I uninstalled cygwin and installed it 
with an account that does not have a network share included with the 
login.

After this I setup cron using cron-config.

I selected yes to netsec if that is okay. I have a general idea of what 
netsec is but don't know how it pertains to this problem.

Is this what all of you guys are saying this file should look like?

sys-scheduler AT backup /
$ more cronmail.sh
cat > /cronmail.txt

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

My crontab looks like this:
5       *       *       *       *       /croncheckscript.sh

The croncheckscript.sh looks like this:
sys-scheduler AT backup /
$ more croncheckscript.sh
echo are_you_working  >> cronoutput.out

My Permsiions look like this and this :-[ thing still wont' work?
sys-scheduler AT backup /
$ ls -al
total 13
drwxrwx---+ 11 sys-scheduler mkgroup-l-d    0 Mar 17 00:28 .
drwxrwx---+ 11 sys-scheduler mkgroup-l-d    0 Mar 17 00:28 ..
drwxrwx---+  2 sys-scheduler mkgroup-l-d    0 Mar 16 23:50 bin
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d    0 Mar 17 00:20 
croncheckscript.out
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d   40 Mar 17 00:04 
croncheckscript.sh
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d   20 Mar 17 00:28 cronmail.sh
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d    3 Mar 17 00:27 cronmail.txt
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d   32 Mar 17 00:31 
cronoutput.out
dr-xr-xr-x   1             0 root           0 Dec 31  1969 cygdrive
-rwxr-x---+  1 sys-scheduler mkgroup-l-d   70 Mar 16 23:52 cygwin.bat
-rwxr-x---+  1 sys-scheduler mkgroup-l-d 7022 Mar 16 23:52 cygwin.ico
drwxrwx---+ 34 sys-scheduler mkgroup-l-d    0 Mar 16 23:57 etc

The link is:
sys-scheduler AT backup /usr/sbin
$ ls -al | grep sendmail
lrwxrwxrwx   1 sys-scheduler mkgroup-l-d      12 Mar 17 00:03 sendmail 
-> /cronmail.sh




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019