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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to