Re: Time -

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

 



On Tue, 2018-08-28 at 15:06 -0400, Bob Goodwin wrote:
> On 08/28/18 14:06, Tom Horsley wrote:
> > On Tue, 28 Aug 2018 13:36:11 -0400
> > Bob Goodwin wrote:
> > 
> > > I would be happy typing a line inxterm that would run aplay
> > > some.wav at
> > > the end of the period. Can anyone tell me how to do that?
> > 
> > Just in a terminal, this should work:
> > 
> > sleep 600 ; aplay some.wav
> > 
> > That will sleep for 600 seconds then play some.wav. The
> > man page for sleep can give you details on how to specify
> > different time units, etc.
> > ___________________________
> 
> That's what I wanted to do, tried  "$ sleep 2 ; aplay 
> /home/bobg/audio/login.wav" Works for me, simple to do, and I can
> make 
> that do whatever I need.
> 
> Thanks Tom and JD

A "trick" I like to use in any command scripts I write is to have them
tell me how to use them if I run them without any perimeters. Here is
how that works, just need to add the line to play the sound file:


#!/bin/sh

if [ $# -lt 1 ];then
 echo
 echo "This script will alert you after X seconds."
 echo "Use:"
 echo 'eggtimer 5'
 echo
 exit 1
fi

sleep $1
echo Done



-- 
Doug H.

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux