Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix strange characters displayed 2

Status
Not open for further replies.

riffraff76

Technical User
Jul 2, 2008
7
GB
Hi all,

I've recently switched jobs and am seeing some strange things with the new one!

If i SSH to either Linux or Unix boxes from a windows client i can see very strange chars when e.g. listing files in a dir, as an example see below:

-rwxr-xr-x 1 bl rt 665 May 19 08:37 ?[00;32mpush.pl?[00m
-rwxr-xr-x 1 bl rt 140 Apr 24 08:37 ?[00;32memail.pl?[00m

It should render to:

-rwxr-xr-x 1 bl rt 665 May 19 08:37 push.pl
-rwxr-xr-x 1 bl rt 140 Apr 24 08:37 memail.pl

This only happens if i use plink from e.g. a DOS shell, if i use PuTTY (with its own console) then all is well.

If i change the unix/linux shell to bash then these chars disappear from file listings but they dont totally disappear as i still see them when e.g. using the man tool to list help on commands.

Can anyone explain what exactly is doing this and if there is a way round rather than finding an alternative to plink?

Thanks in advance!
 
looks like LS_COLORS is trying to colorize the output green (32). ?[00;32mpush.pl?[00m
Maybe Putty has an option 'ansi-colors' o.s.l.t.

Alternative: Try to turn them of (in a .bashrc-file or whatever shell you are using).

LS_COLORS should be visible by the command env i.e..

don't visit my homepage:
 
plink is very basic and does not attempt to do any interpretation of terminal control codes, which are what you're seeing. putty on the other hand has full xterm terminal emulation.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top