Re: [Hampshire] Using at command with xmessage

Top Page

Reply to this message
Author: Clive Woodfine
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Using at command with xmessage
On 18/06/07, Bob Dunlop <bob.dunlop@???> wrote:
> On Mon, Jun 18 at 05:08, Clive Woodfine wrote:
> > I am trying to send myself an alarm call in a few minutes time. If I
> > run 'xmessage "Wake Up"' from the command line in Bash a little window
> > pops up showing Wake Up.
> >
> > If I run 'at now + 2 minutes' then press enter I get
> > at>          At which point I enter 'xmessage '"Wake Up"' and press
> > enter which gives
> > at>          I then do Ctrl D and get
> > at> <EOT>
> > job 42 at 2007-06-18 16:38
> > [clive@Core ~]$

> >
> > The at command seems to work as I get a mail saying
> > Error: Can't open display:
>
> Try
>   DISPLAY=":0.0" xmessage "Wake Up"
>         Bob Dunlop

>

Thanks Bob that works fine, and Dave's

$ at now + 2 minutes <<< 'DISPLAY=:0 zenity --warning --text "Wake Up";'

Works too. I agree Zenity looks much better.

Many thanks again.

Clive Woodfine