<p>I have written a KornShell (ksh) script that sets an array the following way:</p>

<pre><code>set -A fruits Apple Orange Banana Strawberry
</code></pre>

<p>but when I am trying to run it from within cron, it raises the following error:</p>

<pre><code>Your "cron" job on myhost
/myScript.sh

produced the following output:

myScript.sh: -A: bad option(s)
</code></pre>

<p>I have tried many crontab syntax variants, such as:</p>

<p>Attempt 1:</p>

<pre><code>0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script/myScript.sh
</code></pre>

<p>Attempt 2:</p>

<pre><code>0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script/./myScript.sh
</code></pre>

<p>Attempt 3:</p>

<pre><code>0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd /path/to/script &amp;&amp; ./myScript.sh
</code></pre>

<p>Any workaround would be sincerely appreciated. Thanks much in advance!</p>

Although I'm not sure it's the best way to do it, I've managed to solve it this way:
Attempt 4:
```
```
0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd /path/to/script && ksh ./myScript.sh
```
```