Re: Audio with CRON works - not AT?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/06/2010 07:52 AM, Philip Rhoades wrote:
> People,
>
> When I put:
>
> 40 21 * * * root /usr/bin/mplayer -ao alsa
> /home/phil/audio/vincent_van_gogh.mp3
>
> in /etc/crontab - it works but if use "at" for any time and enter:
>
> /usr/bin/mplayer -ao alsa /home/phil/audio/vincent_van_gogh.mp3
>
> - at the designated time I hear a click as though something happens but
> no audio clip.
>
> Anyone know why "at" doesn't behave?

I'm sure it does.  When you use /etc/crontab, you're saying "use root's
environment when running this command".  You weren't clear, but if
you're using "at" as any user other than root, then it'll execute with
_that_ user's environment, not root's.  This might cause access issues
to the audio hardware, pulseaudio may not be running if you're not
logged into the system via the GUI, etc., etc.  There's lots of stuff
going on there.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-   Which is worse: ignorance or apathy?  I don't know.  Who cares?  -
----------------------------------------------------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux