On Sat, May 31, 2003 at 10:18:17AM -0700, T. Alexander Popiel wrote: > In message: <[EMAIL PROTECTED]> > Chris Green <[EMAIL PROTECTED]> writes: > > > >It seems amazingly unlikely! How many 'innocent applications' are > >there which one would run as root and which echo the contents of the > >title bar to the display? It's not the sort of thing one does by > >mistake really is it? > > syslog, for one, if you have a root shell running inside an rxvt at > the time some maliciously-crafted message gets logged to console or > all users... > Who runs a root shell that accepts messages? Oh well, I suppose it's possible but it seems unlikely.
> >Oh well, it's not actually much direct use to me anyway (getting the > >title bar that is) so it's all a bit irrelevant anyway. > > > >Does anyone have any other ways of uniquely identifying an rxvt window > >(from the point of view of the shell running in it) to make it easy to > >differentiate shell history files? This was my original reason for > >trying to use the window title but as you have to echo the escape > >sequence to the window/screen to get the title it's not (as I said) > >very useful. > > > >I know you can use process-id and such but that means that history > >from session to session is lost. > > I think that you're working a bit backwards... you should be setting > the identity of the window from the shell, instead of trying to figure > out the identity of the window from the shell. > The particular situation is my work machine, it's a Solaris 2.6 (probably soon 2.8), Sparc Ultra. I run the standard CDE desktop but with rxvt terminal windows. I set the HISTFILE name for the local windows in the sessionetc file, that's no problem. However much of my work (code development and compiling) is done on the server so many of my windows rlogin to the server machine, these are the ones I'd like to differentiate somehow. There's no easy way to differentiate rlogins from different windows that I can see. -- Chris Green ([EMAIL PROTECTED])
