[comp.windows.x] xterm -lf problem

mef@klinzhai.rutgers.edu (Marc E. Fiuczynski) (02/17/91)

Hello, I am having some trouble using the -lf option of xterm.
Lately, I have to connect to this machine that only accepts 
vt100 as its terminal type and I need to log the session to a 
file while I'm on.  
This is what I'm doing now:
	xterm -l -tn vt100 -T FOO -e telnet machine.
There are a ton of control characters in the file afterwards 
when I want to lookat/edit it.

After reading the man page I found the -lf option.  This option specifies
the name of the file to which the output log described in the -l option
is written.  If 'file' begins with a pipe symbol (|), the rest of the
string is assumed to be a command to be used as the endpoint of a pipe.

Thus, I tried this:
	xterm -tn vt100 -lf "|sed 's/^M// ; s/^G//' > logfile" -T FOO \ 
		-e telnet machine.
However, I don't get a logfile at all. Even if I just do a 
	xterm -lf "|sed 's/^M//' > foo" 
locally it doesn't create a logfile.  Is this a know bug or what. 
	
If you know another good way of extracting the control 
character while logging a session please let me know.


Sincerely, 
	Marc E. Fiuczynski
-- 
______________________________________________________________________________
Marc E. Fiuczynski	 \\  Home: (609) 683-4416	School: (908) 878-9388
mef@klinzhai.rutgers.edu //  UUCP: {backbone}!rutgers!klinzhai.rutgers.edu!mef