What would be the right way to declare an array within a script that will be called by cron?
- 阅读更多 关于 What would be the right way to declare an array within a script that will be called by cron?
问题 I have written a KornShell (ksh) script that sets an array the following way: set -A fruits Apple Orange Banana Strawberry but when I am 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 have tried many crontab syntax variants, such as: Attempt 1: 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script/myScript.sh Attempt 2: 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path