: I don't know if this is possible...but with all the unix gurus out there
: I'm sure someone will know a way.
: So, I figured that it would be easy to have a line like:
: xterm -e wwwoffle -fetch...
: in my ip-up script. At this point a xterm window would come up on my
: screen, and it would go away when the fetches were complete. If this
: worked I could expand to make it more functional.
There are several possible problems here.
First, your ip-up script is not aware that there is X display around.
So, xterm simply doesn't know where to connect. You can fix this
problem by adding export DISPLAY=:0 into ip-up just before xterm line
But are you sure that X would be always running when your ip-up is
executed. Does your computer run unattended during night? (when it is
usialy cheaper to download either due to ISP or due to phone costs)
In this case attempt to run Xterm would fail and wwwoffle wouldn't start
when it can work better than ever.
Second, opening root xterm is security hole if you don't know before
that guy sitting at the X display is right guy, who know the password.
Are you only user on your machine? Or there is sister, daughter or wife,
which can be scared with unexpectedly appeared window and type something
dangerous in there?
It can be checked although. You can run ps -aux to find out is there
YOUR window manager, and check if owner of its process is one of trusted
users. If no, just run wwwoffle in background as before.
And last, you are perfectly right. In good setups any user other than
current, cannot create windows on X desktop. Even root. Try typing
su in xterm, and start another xterm from root prompt, if it works,
it is not your case. If you recieve "Client not authorized" error,
visit my home page. There is couple of recipes how to overcome it.
: However, it will not work that easily. From what I have figured out the
: pppd program runs as root. As does the ip-up script. So, the 'xterm...'
: thing fails. I assume the problem is that a program running as root
: can't just willy-nilly open a term on a user's terminal.
: Any ideas on how I can do this?
: I hate to ask, but please copy replies via email. I do follow the NG,
: but my ISP loses as much as it gets. Thanks.
: / ) / Bob van der Poel
: /___/_(_) /_) http://www.kootenay.com/~bvdpoel
Institute for Commerce Office:7-(095)-333-2022
Engineering Home: 7-(095)-135-46-61