Click to See Complete Forum and Search --> : Running X apps with the "at" command?


seeker22
07-07-2001, 05:03 PM
Is there a way to have "at" launch X applications?
I tried just putting the command of a x application and it mailed me with this output...

Aborting. $DISPLAY is not set.
Error: KUniqueApplication: Pipe closed unexpected.

Thanks!

bdg1983
07-08-2001, 06:27 AM
I've never tried it myself. Experiment with some simple x apps to see if you can get it to work. If they all produce the same error, then it's either that it's not possible or some sort of parmameters need to be included. Anything in the 'at' manpages?

undef
07-08-2001, 11:26 AM
Aborting. $DISPLAY is not set.

you must have X started. run xinit first before at

Strike
07-08-2001, 02:48 PM
Originally posted by undef:
<STRONG>Aborting. $DISPLAY is not set.

you must have X started. run xinit first before at</STRONG>

No, no, I don't think that is the problem. I tried the same thing when testing some things out the other day, and I had X started but got the same mail.

X_console
07-08-2001, 05:27 PM
Haven't tried this, but maybe if you start the x-application through a shell script that sets the DISPLAY variable, it might solve the problem. Basically something like this:

#!/bin/bash
# run-xclock.sh
export DISPLAY=whatever
xclock &

Then call "run-xclock.sh" from "at" and see if it works.