If you want to schedule something without keeping the terminal open, have a look at the 'at' command:
$ at now + 30 minutes warning: commands will be executed using /bin/sh at> export DISPLAY=:0 at> vlc music.mp3 at> <EOT> job 2 at Sat Feb 6 13:01:00 2010 $ atq 2 Sat Feb 6 13:01:00 2010 a eggled $ date Sat Feb 6 12:32:02 CST 2010 So, in 30 minutes it will try to play music.mp3. Since I didn't supply a path and music.mp3 doesn't even exist, I'll probably just see vlc with a missing file error, but that's ok. It's a cool utility. On Sat, Feb 6, 2010 at 8:05 AM, Jeremiah Bess <[email protected]>wrote: > Don't use a pipe ( | ), use a semicolon ( ; ) > A pipe takes the output of the first command and sends it to the second > command immediately. > > Jeremiah E. Bess > Network Ninja, Penguin Geek, Father of four > > > > On Sat, Feb 6, 2010 at 06:57, Vishal Garg <[email protected]> wrote: > >> I wish to create a alarm clock using 'sleep' and 'vlc' >> >> what i tried - >> >> sleep 30m | vlc music.mp3 & >> >> but the music file plays immediately? >> >> -- >> You received this message because you are subscribed to the Linux Users >> Group. >> To post a message, send email to [email protected] >> To unsubscribe, send email to >> [email protected] >> For more options, visit our group at >> http://groups.google.com/group/linuxusersgroup > > > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > -- Daniel -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
