X-Spam-Check-By: sourceware.org Message-ID: <45E3552B.4070101@avegasystems.com> Date: Tue, 27 Feb 2007 08:46:19 +1100 From: David le Comte User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cronjob + sed References: <9166489 DOT post AT talk DOT nabble DOT com> In-Reply-To: <9166489.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com linux1974 wrote: > Hi > > 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. > Thanks > I did this only a few weeks ago. The cron stuff isn't normally included. Re-run the Cygwin setup.exe. Go to the Admin section, expand it, and make sure you get it to send you everything from that section. You will then be asked to include a couple of dependencies to which you should "OK". After that everything is pretty well as you would expect from a vanilla System V (did cron work the same way in BSD?), except invoking the daemon. The latter I haven't quite worked out. I, myself, invoke it (the cron daemon itself runs as a Windows "service", and it resides in /usr/slib/bin which wont be in any usual PATH) from my .bash_profile (which is a bit silly). If I turn my machine off, as soon as I invoke my first bash shell, the daemon starts - I suspect that I'm supposed to add it to the list of Windows Services, but the thought of having to work out how to do that (in Windows), I find a bit annoying - [ I hate dealing with my XP OS]. regards, DleC -- 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/