xhost question

From: dakotak1d@netscape.net
Date: Thu Apr 03 2003 - 15:37:03 EST


SunGods,
I have a requirement to automate a process upon startup (probably a script in rc3.d) that will do:

xhost +
su - appluser -c "export DISPLAY=satori:0.0;xhost +;/usr/dt/dtterm" (I know, I know...X security...)

Or perhaps I need to do something else....the goal is to allow an application that runs via cron can open a dtterm session which it needs & uses without manual intervention. If this workstation gets rebooted, etc. the job always fails unless someone manually logs in as the application user and opens a dtterm & does the export DISPLAY, xhost, etc. I can't seem to get this set via startup scripts...it complains with:

Xlib: connection to "satori:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
xhost: unable to open display "satori:0.0"

Is the problem because the workstation goes to CDE login screen & cannot be 'sent' a dtterm until it's actually logged in?

TIA, Kevin

__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:08 EDT