X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE
X-Spam-Check-By: sourceware.org
Message-ID: <4B71EE11.4020508@laposte.net>
Date: Wed, 10 Feb 2010 00:21:53 +0100
From: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: about cron
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-me-spamlevel: not-spam
X-me-spamrating: 40.000000
X-me-spamcause:  OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrvdeltddrvdehucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecu
X-IsSubscribed: yes
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


Hi,

I use ksh as /bin/sh bcoz pdksh is far more performant than bash
(the same heavy script takes around 2.5 mins using ksh and around 6 mins
using bash !)
$ ls -l /usr/bin/sh
lrwxrwxrwx 1 root root 7 2010-02-08 17:11 /usr/bin/sh -> ksh.exe

But :

package version : cron-4.1-57.tar.bz2

$ cron-config
/usr/bin/cron-config[853]: [: >: unexpected operator/operand
Cron is already installed as a service under account .yg_server.Do you
want to remove or reinstall it? (yes/no)

=> the first line should be #!/bin/bash, not #!/bin/sh

/bin/sh is not necesserally bash. if your script needs
bash extensions, you must use #!/bin/bash.

Regards,

PS : don't know why I can't submit to -apps while I'm subscribed !

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists@laposte.net



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

