Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who's an X guru then ?

Status
Not open for further replies.

tarn

Technical User
Aug 19, 2001
534
GB
I'm trying to startup Opera in an existing DISPLAY from cron but, it has got me stumped (never was an X fan)
This is what I do at the moment:

As user fred who has a logged in X secession, I have a crontab = to
12 12 * * (1-5) /scripts/start_opera
the contents of start_opera are:

#!/bin/bash
. /home/fred/.bash_profile
export DISPLAY=localhost:0.0
/usr/bin/opera > $DISPLAY

This for some reason does nothing and reports no error

Any ideas? ...... anyone ?
 
You don't need to redirect Opera to DISPLAY... simply start Opera and it should read the DISPLAY variable from the environment itself (i.e. remove the > $DISPLAY).

You'll probably find it's created a file called localhost:0.0 somewhere on your system. Annihilannic.
 
What a star (you) and what a plonker (me)
Sorted .... I guess you could say "I could'nt see the wood for the trees"

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top