What would be the right way to declare an array within a script that will be called by cron?
- by Nano Taboada
I've written a Korn Shell script that sets an array the following way:
set -A fruits Apple Orange Banana Strawberry
but when I'm trying to run it from within cron, it raises the following error:
Your "cron" job on myhost
/myScript.sh
produced the following output:
myScript.sh: -A: bad option(s)
I've tried many crontab syntax variants, such…