X-Spam-Check-By: sourceware.org
Message-ID: <45E32F84.9A99726C@dessent.net>
Date: Mon, 26 Feb 2007 11:05:40 -0800
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cronjob + sed
References: <9166489.post@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

linux1974 wrote:

> How do you set up cronjobs with cygwin? If I want to run a script that uses
> sed ( does thet standard sed that comes with cygwin supports /s /g etc
> commands to manipulate a string or do I need to upgrade sed? )
> and gets an input file  from a windows directory and output a new file on
> that directory?
> Tried to look for crontab  but couldn't find.

Editing the crontab is exactly as you would on linux, type "crontab -e"
and edit with whatever editor you've set EDITOR to.  When you save, it
will be installed.  Type "man 5 crontab" for details.  Remember to use
POSIX paths, not windows paths in your cron jobs.  You of course need to
install the cron package, I hope that goes without saying.  To install
the cron daemon itself (as a service) you need to run cron-config.

Cygwin includes GNU sed, same as on linux.  But then again I don't know
that a sed exists that doesn't support basic regular expression
functions.

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/

