1753479 Members
4857 Online
108794 Solutions
New Discussion юеВ

Re: X-term pop up

 
Adam Noble
Super Advisor

X-term pop up

All, surely this is easy enough but cant seem to work it out in the man page. I simply want to at startup through my .dtprofile generate a pop up xterm with my IP address within it. (dont ask me why) Anyway I can run xterm -exec (command string) however this works but the command runs and the window closes how can I get it to stay there.
6 REPLIES 6
Alex Glennie
Honored Contributor

Re: X-term pop up

an idea as I haven't got time to test this p.m ...

add the command to $HOME/.dt/sessions/sessionetc

you may need to create the file, make it executable , log out of cde then back in ... does this work ?

ps post the syntax of the exec here I'll have a play tomorrow .... is it in ""'s ?
Adam Noble
Super Advisor

Re: X-term pop up

Well all I want to do is show my display variable so I was just going to run:-

xterm -exec "env | grep -i disp"
Volker Borowski
Honored Contributor

Re: X-term pop up

Hello,
currently no X available, but I try it anyway (not validated ) ...

xterm -title $DISPLAY -exec 'echo Display: $DISPLAY ; /bin/sh'

Volker
Robin Wakefield
Honored Contributor

Re: X-term pop up

Hi Adam,

xterm -e /bin/sh -c "echo $DISPLAY;sleep 10000000" &

or

xterm -e /bin/sh -c "echo $DISPLAY;while :;do^Jsleep 1^Jdone" &

should do it.

rgds, Robin
Massimo Bianchi
Honored Contributor

Re: X-term pop up

Hi,
my guess:

IP=$( grep 'hostname' /etc/hosts | awk '{ print $1 }' )

nohup xterm -e /bin/sh -c "banner $IP; read a" &


and it will stay there untill you pres enter !

Massimo


Jos Francois
Occasional Advisor

Re: X-term pop up

Change your prompt at .profile level.

Somthing like

PS1=$DISPLAY"> "
JJFRAN