On 7/11/07, Steven Adeff &lt;<a href="mailto:adeffs.mythtv@gmail.com">adeffs.mythtv@gmail.com</a>&gt; wrote:<br>&gt; I&#39;m getting this when running the script as root, any ideas?<br>&gt; <br>&gt; ./keep_dct_alive.sh: 24: Syntax error: &quot;(&quot; unexpected
<br>&gt; --<br>&gt; Steve<br><br>Steve, <br><br>I encountered the same thing.&nbsp;&nbsp;I wasn&#39;t sure whether my problem was distro-related or more global.<br><br>The root cause of the problem is that, as a default, cron executes scripts using the Bourne (sh) shell, which does not support array variables.&nbsp;&nbsp;
<br><br>I did two things to fix the problem.&nbsp;&nbsp;I believe that either one will work.&nbsp;&nbsp;<br><br>First of all, I changed /etc/crontab, replacing the line &quot;SHELL=/bin/sh&quot; to &quot;SHELL=/bin/bash&quot;.&nbsp;&nbsp;That did not immediately fix the problem (probably because I didn&#39;t restart cron....)&nbsp; 
<br><br>So then I read somewhere that if the line &quot;#!/bin/bash&quot; is the first line in a shell script, that cron will execute the file is the specified shell.&nbsp; I had this as the second line.&nbsp; So I moved to to line 1.&nbsp; 
<br><br>Problem solved.<br><br>Tom<br>