[ILUG] X crontab
Kae Verens
kae at verens.com
Tue Jun 15 17:26:55 IST 2004
Cian Cullinan wrote:
> On Tuesday 15 June 2004 16:29, spartic at sdf.lonestar.org wrote:
> : Hey,
> : p a crontab alarm, i am aware of X apps like kalarm and stuff that can do
> : this but what I would like to do is enter a simple crontab to execute
> : something like xmms -p(play xmms playlist) at a specific time. How do I get
> : cron to start an X program is basically what I would like to know Cheers!
>
> What you're looking for is the "at" command. From the man page:
>
> at, batch, atq, atrm - queue, examine or delete jobs for later execution
>
> This will let you specify a command to run once-off at a specific time. Cron
> is really more for running things periodically, like once a day/week/month.
>
> Cian
>
I think he meant to open up a program from a CLI such that it appears in
his GUI.
To do that, set the $DISPLAY variable to your GUI's display, then run
the command.
For instance, I'm running X at :0
If I open a new virtual terminal (CTRL+ALT+F2) and type the following:
DISPLAY=:0 xmms
then go back to the GUI (CTRL+F7), I can see that the XMMS has opened
there. You should be able to do this from cron as well
Kae
More information about the ILUG
mailing list