Hello all, I have a question. It is probably a very simple one for all
you guru's out there, but here goes...
I am running red hat linux 5.1, using gcc and afterstep window manager
under x. I am annoyed by the fact that the xterms all have the title
"xterm" - regardless of how many are open - so I started peeking at the
xterm man page and saw a -T option will allow a title to be specified.
So I thought as a little c programming project, I'd write a piece of
code that accepts a title, forks a child and execl()'s the xterm passing
all the args and the title as the last option. I tested out the fork()
and execl() code with a ls command first and it worked fine. I changed
the args to be the xterm and was sure to terminate the arg list with a
NULL value (sorry, I'm a c programming novice...) :)
When I run the program, I get an XT error: unable to open the display. I
am running the code as the same user that owns the console. Here is the
execl() - any ideas??? Thanks!
rc = execl("/usr/X11R6/bin/nxterm",
Thanks for any help!