crontab not executing as regular user

Antonio Olivares olivares14031 at gmail.com
Sun Apr 30 16:42:51 PDT 2017


On Sunday, April 30, 2017, Dylan Reinhold <dylan at ocnetworking.com> wrote:

> Does the command .dalarm exist in the users home directory (and not just
> roots home)?
> Can you run ~/.dalarm from the commandline as that user?
>


> yes!
>


> If it does, change your redirections from /dev/null into a file so you can
> see the errors
> 30 16 * * * ~/.dalarm >>~/dalarm.log 2>&1
>
> Then look in the log for any errors.
>
>
Doing this as of now. Will report back.

Best Regards,


Antonio

> Dylan
>
> On Sun, Apr 30, 2017 at 4:05 PM, Antonio Olivares <olivares14031 at gmail.com
> <javascript:_e(%7B%7D,'cvml','olivares14031 at gmail.com');>> wrote:
>
>> Dear folks,
>>
>> I am having a difficult time getting cron to run a script.  I ran
>> $ crontab -e
>>
>> Added the commands
>> # min hr mon dom dow command
>> 30 16 * * * ~/.dalarm >/dev/null 2>&1
>>
>> Where ~/.dalarm has a command to call mplayer and play some music files.
>> #!/bin/sh
>>
>> /usr/local/bin/mplayer -really-quiet -shuffle -playlist ~/.playlist
>>
>> 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?
>>
>> Best Regards,
>>
>>
>> Antonio
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20170430/d7c13fb6/attachment-0003.htm>


More information about the Users mailing list