Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd love to have a CLI alarm clock and came up with this: echo 'gnome-open /home/me/alarm.ogg' | at 09:15

Any ideas why above doesn't work, or anything along those lines?


I've found an answer:

echo 'cvlc /home/user/alarm.wav' | at 08:47

This works perfectly (by using the command line mode of VLC)!

share|improve this question

2 Answers 2

up vote 3 down vote accepted

See edited section of the question: This works absolutely fine (with terminal closed etc):

echo 'cvlc /home/user/alarm.ogg' | at 08:49
share|improve this answer

It won't work because gnome-open targets usually require a $DISPLAY. It also won't work for other such uses since stdout is redirected to mail by at.

The alarm-clock-applet for Gnome is available in the Ubuntu repositories and elsewhere.

share|improve this answer
    
is that specific for 'at ...' (because on its own it works fine! 'gnome-open example.wav')? –  ajo Oct 13 '10 at 19:45
    
@ajo: Yes, when you run something using at, there's no $DISPLAY. When you run it directly from a shell prompt there is. –  Dennis Williamson Oct 13 '10 at 19:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.