This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

about cron



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]