<br><br>On Sunday, April 30, 2017, Dylan Reinhold <<a href="mailto:dylan@ocnetworking.com">dylan@ocnetworking.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Does the command .dalarm exist in the users home directory (and not just roots home)?<br></div><div>Can you run ~/.dalarm from the commandline as that user?<br></div><div><br></div>If it does, change your redirections from /dev/null into a file so you can see the errors<br>30 16 * * * ~/.dalarm >>~/dalarm.log 2>&1<br><br></div>Then look in the log for any errors.<br><br></div>Dylan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 30, 2017 at 4:05 PM, Antonio Olivares <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','olivares14031@gmail.com');" target="_blank">olivares14031@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear folks,<div><br></div><div>I am having a difficult time getting cron to run a script. I ran </div><div>$ crontab -e</div><div><br></div><div>Added the commands</div><div># min hr mon dom dow command</div><div>30 16 * * * ~/.dalarm >/dev/null 2>&1</div><div><br></div><div>Where ~/.dalarm has a command to call mplayer and play some music files.</div><div>#!/bin/sh</div><div><br></div><div>/usr/local/bin/mplayer -really-quiet -shuffle -playlist ~/.playlist</div><div><br></div><div>I have setup a crontab for root user and it is working there, but not as regular user. I have checked and there is no /var/cron/deny for my user. I have read that I need to specify $PATH in crontab file as well in documentation. Any ideas as to how to fix this?</div><div><br></div><div>Best Regards,</div><div><br></div><div><br></div><div>Antonio</div>
</blockquote></div><br></div></blockquote><div>The error is as follows</div><div>/usr/local/bin/xterm: Xt error: Can't open display:</div><div>/usr/local/bin/xterm: DISPLAY is not set</div><div><br></div><div>Best Regards,</div><div><br></div><div><br></div><div>Antonio </div>