Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: odd escape chars in strings obtained by SSH

by danmcb (Monk)
on Oct 12, 2007 at 08:24 UTC ( [id://644408]=note: print w/replies, xml ) Need Help??


in reply to Re: odd escape chars in strings obtained by SSH
in thread odd escape chars in strings obtained by SSH

Thanks for the suggestions. I have indeed aliased ls and set a simple prompt as suggested. I still do have, however, one escape sequence appended to the end of output (even a simple command like 'pwd'). It looks like this:

ESC]0;username@hostname:~^G

ESC is hex 1b, and ^G is the bell char (07). I'm still trying to figure if this is coming from SSH, the term, or from Expect. I'm going to hack it out for now ...

Replies are listed 'Best First'.
Re^3: odd escape chars in strings obtained by SSH
by toma (Vicar) on Oct 12, 2007 at 16:17 UTC
    This looks like it may be the shell prompt. Try setting the shell environment variable PS1='' on the remote machine.

    It should work perfectly the first time! - toma

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://644408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found